What to replace wait3 with in System V?

Heiko Blume src at scuzzy.in-berlin.de
Thu Jun 20 09:15:15 AEST 1991


brian at apt.bungi.com (Brian Litzinger) writes:
>I've noticed that at least SunOS 4.1 has a system call
>wait3() which can take the option WNOHANG.
>Does someone have a good approximate for this function under
>ISC System V.3.2?

if you have isc 2.2.1 you can use waitpid(), i.e.

pid = wait3(&status, (WNOHANG|WUNTRACED), &rusage)

becomes

pid = waitpid(-1,&status,(WNOHANG|WUNTRACED))

where you should not that rusage is not available at all.
-- 
   Heiko Blume <-+-> src at scuzzy.in-berlin.de <-+-> (+49 30) 691 88 93 [voice!]
                  public UNIX source archive [HST V.42bis]:
        scuzzy Any ACU,f 38400 6919520 gin:--gin: nuucp sword: nuucp
                     uucp scuzzy!/src/README /your/home



More information about the Comp.unix.questions mailing list