lkml.org 
[lkml]   [2004]   [Feb]   [4]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateTue, 3 Feb 2004 23:44:27 -0800
FromPaul Jackson <>
SubjectRe: User-space notification of process end
> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:00    [W:0.209 / U:1.050 seconds]
©2003-2008 Jasper Spaans