On 5 March 2014 18:54, Jilles Tjoelker <jilles at stack.nl> wrote:This is confusing and leads to the same issues that the other
> Right now, waitpid(pdforked_child_pid, ...) is the only way to detect
> WIFSTOPPED/WIFCONTINUED and to obtain status and rusage information,
> since pdwait is not implemented. So I suppose it will need to be
wait calls have. IMHO it would be better to implement pdwait() and
deny waitpid(). This also leads to cleaner documentation: "the wait*
calls do not work on process descriptors".
Yes. These are the only two consumers in the tree.
> I'm not sure about the variants of waitpid that match all child
> processes in a particular process group. I don't think they are commonly
>> More generally, are there any examples of pdfork() usage in practice? I
>> had a quick look for sandboxed things using it and didn't immediately find
> In the FreeBSD source tree, sbin/casperd and usr.sbin/rwhod use it. The
> former also passes the process descriptor around using libnv.