wait \*- wait for process to die
causes its caller to delay until one of its child
If any child has died since the last
if there are no children, return is immediate with
(resp. with a value of \*-1 returned).
In the case of several children several
to learn of all the deaths.
If no error is indicated on return,
the r1 high byte (resp. the high byte stored into
) contains the low byte of the
child process r0 (resp. the argument of
) low byte contains the termination status
a list of termination statuses (signals);
0 status indicates normal termination.
If the 040 bit of the termination status
a core image of the process was produced
exit(II), fork(II), signal(II)
(c-bit) on if no children not previously waited for.
From C, a returned value of \*-1 indicates an error.