NAME

unix::wait — Wait for a child process.

synopsis

wyrm::unix::wait [ child | any | pgrp [ group ] ]

description

Wait for a child to terminate or exit.

child
Wait for the specific child process.
Omitted or any
Wait for any child.
pgrp
Wait for any child of the process group.
pgrp group
Wait for any child of the specified process group.

The command returns a three element list: the process that completed, the word exit or signal, and the exit code or signal number. This command enters the event loop and processes all events until it a child completes or there are no children (which is an error).

SEE ALSO

unix-fork (1WY), unix-pid (1WY),