System V and SIGCLD

Simon Brown simon at cstvax.UUCP
Tue May 13 03:59:19 AEST 1986


In article <344 at hrc63.UUCP> nwh at hrc63.UUCP (Nigel Holder Marconi) writes:
>   Now that brings me to wait.  4.2 at least provides two flavours of wait :
>wait and wait3.  Now wait3 is new and is free to do what it wants in its own
>way.   Wait however, does not requires an int pointer, it requires a pointer
>to a union which happens to start with an int.  Whether this affects
>programs written in Sys V flavour or not is probably well defined at the
>moment, but it could change.  Just another example of a transparent
>difference between flavours that is easily overlooked.


Actually, the union doesn't just "happen" to begin with an int - it
*has* to for compatibility with the Version-7 wait(), which was just
like:
	int procid, status;
	procid = wait(&status);

-- 

			-------------------------------------------------
			| Simon Brown,	Dept. of Computer Science,	|
			|		Edinburgh University		|
			| ...!mcvax!ukc!cstvax!simon			|
			-------------------------------------------------



More information about the Comp.unix.wizards mailing list