Help for this page

Select Code to Download


  1. or download this
      $SIG{CHLD} = sub { 
          my $pid = waitpid(-1, 0);
           print ">> eof PID $pid -> $?\n";
       };
    
  2. or download this
      PARENT: PID is 3433
      CHILD: PID is 3434, PPID is 3433
    >> eof pid 3434 -> 0