|| FreeBSD General Commands Manual
wait for processes to terminate
utility will wait until each of the given processes has terminated.
The following option is available:
Print the exit status when each process terminates.
utility returns 0 on success, and >0 if an error occurs.
Invalid pids elicit a warning message but are otherwise ignored.
is not a substitute for the
builtin as it will not clean up any zombies or state in the parent process.
pwait command first appeared in SunOS 5.8.