From: Paul Jackson <pj@sgi.com>
To: Glen Turner <glen.turner@aarnet.edu.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: User-space notification of process end
Date: Tue, 3 Feb 2004 23:44:27 -0800 [thread overview]
Message-ID: <20040203234427.112ed823.pj@sgi.com> (raw)
In-Reply-To: <1075780082.6747.23.camel@andromache>
> I am writing a application which needs to know fairly promptly if a
> daemon has died. I'd prefer not to ... run the program as a non-daemon
> child of a daemon watcher process.
Why not a watcher process, if I may ask. That is, I'd be tempted to
stash a copy of the daemon's executable, and in place of the original
executalbe put a piece of code that fork/exec'd the stashed copy, waited
for the exit, and notified you as need be.
The available operations on files in the /proc file system tend to
be a very limited subset of those on regular files; so I am not
surprised that F_NOTIFY didn't work.
--
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@sgi.com> 1.650.933.1373
prev parent reply other threads:[~2004-02-04 7:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-03 3:48 User-space notification of process end Glen Turner
2004-02-04 7:44 ` Paul Jackson [this message]
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=20040203234427.112ed823.pj@sgi.com \
--to=pj@sgi.com \
--cc=glen.turner@aarnet.edu.au \
--cc=linux-kernel@vger.kernel.org \
/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