Perl Programming/Keywords/waitpid
The waitpid keyword
The function waitpid returns the PID of a particular child process when deceased, or -1, if there was not such a child process. Some systems indicate that there are still processes running with 0.
Syntax
waitpid PID, FLAGS