WAITing for specific process

Arthur David Olson ado at elsie.UUCP
Mon Aug 5 23:51:58 AEST 1985


> > . . .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 at seismo.ARPA
	DEC, VAX and Elsie are Digital Equipment and Borden trademarks



More information about the Comp.unix.wizards mailing list