SYSV r3.2 - how to implement wait3 BSD function

Pim Zandbergen pim at cti-software.nl
Thu Aug 23 01:46:25 AEST 1990


mercer at npdiss1.StPaul.NCR.COM (Dan Mercer) writes:

>More porting help needed - what is an equivalent SYSV r3.2 call for
>a BSD wait3().  Specifically,  a wait3 (&status, WNOHANG, ...)

There is no real equivalent, but sometimes there is a workaround.
This depends on the code.

Usually wait3() is used to release dead child processes from their zombie-state.
This can be accomplished in SysV by ignoring SIGCLD :
	signal(SIGCLD, SIG_IGN);
This will prevent the need for waiting for dead child processes.
Just remove all the wait3 stuff.

I used this workaround for porting tinyMUD (the game)
and OLWM (the X11 window manager).
-- 
Pim Zandbergen                            domain : pim at cti-software.nl
CTI Software BV                           uucp   : uunet!mcsun!hp4nl!ctisbv!pim
Laan Copes van Cattenburch 70             phone  : +31 70 3542302
2585 GD The Hague, The Netherlands        fax    : +31 70 3512837



More information about the Comp.unix.questions mailing list