Cari di Perl 
    Perl User Manual
Daftar Isi
(Sebelumnya) Run a separate programWait for a particular child pr ... (Berikutnya)
Functions for processes and process groups

Wait for any child process to die

Daftar Isi

  • wait

    Behaves like wait(2) on your system: it waits for a childprocess 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 arebeing automatically reaped, as described in perlipc.

    If you use wait in your handler for $SIG{CHLD} it may accidentally for thechild created by qx() or system(). See perlipc for details.

    Portability issues: wait in perlport.

 
Source : perldoc.perl.org - Official documentation for the Perl programming language
Site maintained by Jon Allen (JJ)     See the project page for more details
Documentation maintained by the Perl 5 Porters
(Sebelumnya) Run a separate programWait for a particular child pr ... (Berikutnya)