Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 exptools; site ihuxj.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxt!houxm!ihnp4!ihuxj!tosca From: tosca@ihuxj.UUCP (L. Cole) Newsgroups: net.unix-wizards Subject: WAITing for specific process Message-ID: <106@ihuxj.UUCP> Date: Thu, 1-Aug-85 17:26:17 EDT Article-I.D.: ihuxj.106 Posted: Thu Aug 1 17:26:17 1985 Date-Received: Sat, 3-Aug-85 02:18:23 EDT Distribution: net Organization: AT&T Bell Laboratories Lines: 15 The wait() system call returns the process id of zombie child, but a process may have more than one of these outstanding at a time. Wait() is free (it appears) to return the pid of any of these zombie children. What if you want to wait for a particular child? For example, one might pass the pid of a process to be waited for. It's clear that the way it works now is useful, but there times it really gets in the way. An example of this is the library functions popen/pclose, which generate and wait for a child, possibly discarding a zombie that was to be waited for later. Any suggestions as to what to do or why this facility isn't provided? Chris Scussel ihnp4!ihuxj!tosca Bell Labs Naperville, IL