Ausam/doc/man/man1/wait.1
.th WAIT I 4/19/79
.sh NAME
wait \*- await completion of process
.sh SYNOPSIS
.bd wait
[pid]
.sh DESCRIPTION
If an argument is supplied
.it wait
will wait until that particular process
has completed, and report on abnormal terminations.
If
.it pid
is not a descendant of the current shell or if
no argument is given then
.it wait
will wait till all descendants (commands started with \fB&\fR)
have completed.
.s3
Because the
.it wait\^\c
(II) system call
must be executed in the parent process,
the Shell itself executes
.it wait,
without creating a new process.
.sh "SEE ALSO"
sh(I)