Help for this page

Select Code to Download


  1. or download this
    use POSIX ":sys_wait_h";
    #...
    do {
        $kid = waitpid(-1,&WNOHANG);
    } until $kid == -1;
    
  2. or download this
    $pid = POSIX::waitpid( -1, &POSIX::WNOHANG );
    print "status = ", ($? / 256), "\n";