Catching termination of child process and system() call

Doug Gwyn gwyn at smoke.brl.mil
Thu Jan 24 18:20:39 AEST 1991


In article <1991Jan24.023750.19569 at tkou02.enet.dec.com> diamond at jit345.enet@tkou02.enet.dec.com (Norman Diamond) writes:
>In article <YANG.91Jan23133130 at newyork.nff.ncl.omron.co.jp> yang at nff.ncl.omron.co.jp (YANG Liqun) writes:
>>It should be wait((int *)0).
>It should be wait((union wait *)0) in BSD.

No, it's wait((int*)0) in all flavors of UNIX and POSIX.

"union wait" was a bogus attempt by somebody to give names to the
subfields of the status word, but it was never a correct description
of how wait() actually works and has been repudiated by IEEE 1003.1.



More information about the Comp.lang.c mailing list