__waitpid__
- :
[pid, status, msg] =waitpid(pid, options)¶ Wait for a child process to change state.
pid selects the child (-1 for any child). options is a bitwise or of
WNOHANG,WUNTRACEDandWCONTINUEand defaults to 0. When no child can be waited for, pid is -1 and msg says why.