Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!uunet!mcsun!hp4nl!ctisbv!pim From: pim@cti-software.nl (Pim Zandbergen) Newsgroups: comp.unix.questions Subject: Re: SYSV r3.2 - how to implement wait3 BSD function Message-ID: <1990Aug22.154625.9929@cti-software.nl> Date: 22 Aug 90 15:46:25 GMT References: <114@npdiss1.StPaul.NCR.COM> Organization: CTI Software BV, The Hague, The Netherlands Lines: 21 mercer@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@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