Jump to content

Perl Programming/Keywords/waitpid

From Wikibooks, open books for an open world
Previous: wait Keywords Next: wantarray

The waitpid keyword

[edit | edit source]

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

[edit | edit source]
  waitpid PID, FLAGS
Previous: wait Keywords Next: wantarray