On 18 Mar 2014, at 15:11, David Drysdale <drysdale at google.com> wrote:
Yes, the PD_DAEMON semantics were added later and are perhaps not as coherent as one would like. I see two ways (off hand) to make behaviour coherent:
(1) Make the non-exposure dependent on having a process descriptor rather than using pdfork()
(2) Make pdfork()'d processes whose descriptor has closed behave as though SA_NOCLDWAIT had been set -- i.e., it simply garbage collects without being reaped.