> 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 _at_ 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 _at_ vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
References:
- User-space notification of process endGlen Turner
- Prev by Date: 2.6.2-rc3 with isdn patch + devfs doesn't compile
- Next by Date: Re: Q: large files in iso9660 ?
- Previous by thread: User-space notification of process end
- Next by thread: Active Memory Defragmentation: Our implementation & problems
- Indexes:[Main][Thread]