wait() & negative values

Ronald van der Pol rvdp at cs.vu.nl
Tue Aug 21 01:13:59 AEST 1990


carroll at m.cs.uiuc.edu writes:


>sometimes returns negative values in *loc, e.g. 0xFFFFxxyy  where xx and yy
>are the values you'd normally expect in the bottom 16 bits of the return value.
>TFM specifies the contents of the bottom 16 bits of *loc, but says absolutely
>nothing about the top 16 bits. The GNU-Emacs process internals assume that
wait(loc)
int *loc;

loc = 0xHHHH.LLLL
HHHH: low byte of child exit argument (0 on normal exit)
LLLL: termination status of child process (0 on normal exit)

--
		Ronald van der Pol  <rvdp at cs.vu.nl>



More information about the Comp.unix.i386 mailing list