Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/15/85; site elsie.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!elsie!ado From: ado@elsie.UUCP (Arthur David Olson) Newsgroups: net.unix-wizards Subject: Re: WAITing for specific process Message-ID: <5199@elsie.UUCP> Date: Mon, 5-Aug-85 09:51:58 EDT Article-I.D.: elsie.5199 Posted: Mon Aug 5 09:51:58 1985 Date-Received: Wed, 7-Aug-85 00:42:53 EDT References: <106@ihuxj.UUCP> <406@brl-tgr.ARPA> Distribution: net Organization: NIH-LEC, Bethesda, MD Lines: 16 Summary: A technique to avoid > > . . .What if you want to wait for a particular child? > > . . .#define DELAY 2 /* test interval, in seconds */ > > while ( kill( pid, 0 ) == 0 ) > sleep( (unsigned)DELAY ); > } Please note that this technique is not portable to 4.1bsd systems, where attempts to use signal zero always cause kill to return a non-zero value. -- UNIX is an AT&T Bell Laboratories trademark. DELAY is an American Jurisprudence trademark. -- UUCP: ..decvax!seismo!elsie!ado ARPA: elsie!ado@seismo.ARPA DEC, VAX and Elsie are Digital Equipment and Borden trademarks