Help for this page
my $pid1 = open( my $fh1, '|-'); if ( $pid1 == 0 ) ... print "parent sez: pid $dead_pid exited with status $?\n"; $dead_pid = waitpid $pid2, 0; print "parent sez: pid $dead_pid exited with status $?\n";
child1 sez: 19628 forked, now exec()ing false!! child2 sez: 19629 forked, now exec()ing true!! Hi, I'm the parent, and I'm going to wait for pid1=(19628) and pid2=(1 +9629)! parent sez: pid 19628 exited with status 256 parent sez: pid 19629 exited with status 0
www.com | www.net | www.org
No recent polls found