9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] getting a pid from threadpostmountsrv
Date: Sun, 10 Jun 2007 15:56:15 -0400	[thread overview]
Message-ID: <20070610195205.C21DC1E8C22@holo.morphisms.net> (raw)
In-Reply-To: <d88c798751a485e3bc8a655247d70555@9netics.com>

> shouldn't an in-prog fs -- notefs in cpu.c -- be possible with lib9p?
>
> for snsa ref implementaton, a sibling proc running srv() handles
> /dev/sysctl, that controls the workings of the agent.  agent needs to
> be able to kill the srv proc if the exec'd exportfs dies.

sure but you didn't answer the question of why you are
sending notes.  if you just want to clean up on exit
you can use threadexitsall and the right things happen.
if you are trying to kill off one proc but not the whole
program using a note, you are asking for trouble.

russ



  reply	other threads:[~2007-06-10 19:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-10  1:39 Skip Tavakkolian
2007-06-10 14:49 ` Russ Cox
2007-06-10 15:57   ` Skip Tavakkolian
2007-06-10 16:14     ` Russ Cox
2007-06-10 17:32       ` Skip Tavakkolian
2007-06-10 19:56         ` Russ Cox [this message]
2007-06-10 18:52       ` Skip Tavakkolian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070610195205.C21DC1E8C22@holo.morphisms.net \
    --to=rsc@swtch.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).