Movatterモバイル変換


[0]ホーム

URL:


functions /wait
(source,CPAN)
#wait

Behaves likewait(2) on your system: it waits for a child process to terminate and returns the pid of the deceased process, or-1 if there are no child processes. The status is returned in$? and${^CHILD_ERROR_NATIVE}. Note that a return value of-1 could mean that child processes are being automatically reaped, as described inperlipc.

If you usewait in your handler for$SIG{CHLD}, it may accidentally wait for the child created byqx orsystem. Seeperlipc for details.

Equivalent towaitpid(-1, 0).

Portability issues:"wait" in perlport.

Perldoc Browser is maintained by Dan Book (DBOOK). Please contact him via theGitHub issue tracker oremail regarding any issues with the site itself, search, or rendering of documentation.

The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via thePerl issue tracker, themailing list, orIRC to report any issues with the contents or format of the documentation.


[8]ページ先頭

©2009-2025 Movatter.jp