Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!spool.mu.edu!uunet!math.fu-berlin.de!opal!tmpmbx!scuzzy.in-berlin.de!src From: src@scuzzy.in-berlin.de (Heiko Blume) Newsgroups: comp.unix.questions Subject: Re: What to replace wait3 with in System V? Message-ID: <1991Jun19.231515.11517@scuzzy.in-berlin.de> Date: 19 Jun 91 23:15:15 GMT Article-I.D.: scuzzy.1991Jun19.231515.11517 References: <1991Jun19.064028.1289@apt.bungi.com> Distribution: usa Organization: Contributed Software Lines: 20 brian@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@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