Messages in this thread | | | Date | Tue, 9 Dec 2008 17:05:43 +0000 | From | Alan Cox <> | Subject | Re: [RFC PATCH] waitfd: file descriptor to wait on child processes |
| |
> prototype for a fourth: waitfd. It pretty much does what the name > suggests: reading from it yields a series of status ints (as would be > written into the second argument of waitpid) for child processes that > have changed state. It takes essentially the same arguments as waitpid > (for now) and supports the same set of features.
This propogates the fundamental braindamage of waitpid - the fact the notification only works on child process trees.
Here is a more elegant suggestion - use epoll, inotify and friends fully on /proc process nodes.
Alan
| |