Re:Dtrace for Linux
by JdeBP on Thursday February 15, 2018 @05:20AM
(#16382973)
We've talked before about FreeBSD's process descriptors and EVFILT_PROC kevents, ne?
[ Parent
| on HN ]
Process descriptors are unfortunately a little incomplete -- pdwait() was never implemented. They don't seem to be getting much use.
You don't need pdwait(). You can watch the process descriptor with kqueue to get the process exit status look for EVFILT_PROCDESC in https://www.freebsd.org/cgi/man.cgi?kevent.