Re: User-space notification of process end

From: Paul Jackson
Date: Wed Feb 04 2004 - 02:43:07 EST


> 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@xxxxxxx> 1.650.933.1373
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/