On Sat, 17 Jun 2017, Luke Small wrote: > It works if you put a waitpid() in there, but if that is true, what's the > point of having ke.data returning the status when the wait() series will do > it?
You can use kevent() to see the exit status of a process that you cannot waitpid() for. Note that kevent() EVFILT_PROC filters don't reap zombies, so your program is accumulating zombie children until you reach your process limit. As for the behavior of EVFILT_PROC on an already exited process, I look forward to your sendbug report. Philip Guenther
