WAIT(1) RISC/os Reference Manual WAIT(1)
NAME
wait - await completion of process
SYNOPSIS
wait [ n ]
DESCRIPTION
wait waits for your background process whose process ID is n
and reports its termination status. If n is omitted, all
your shell's currently active background processes are
waited for and the return code will be zero.
The shell itself executes wait, without creating a new pro-
cess.
SEE ALSO
sh(1).
NOTES
If you get the error message, cannot fork, too many
processes, try using the wait command to clean up your back-
ground processes. If this doesn't help, the system process
table is probably full or you have too many active fore-
ground processes. (There is a limit to the number of pro-
cess IDs associated with your login, and to the number the
system can keep track of.)
Not all the processes of a 3-or-more stage pipeline are
children of the shell, and thus cannot be waited for.
If n is not an active process ID, all of your shell's
currently active background processes are waited for and the
return code will be zero.
Printed 11/19/92 Page 1