Help for this page

Select Code to Download


  1. or download this
    $SIG{CHLD}=\&catchChildDeath;
    
    ...
        printf "There are %d children running\n",$children;
    
    }
    
  2. or download this
    sub my_child_work{
                    my $x = shift;
    ...
                    sleep 1;
                    exit;
    }