Help for this page

Select Code to Download


  1. or download this
    sub fork_bot{
        my $arg = shift;
    ...
        kill 1, $pid or die "Can't kill $arg->{bot}: $!\n";
        exit(0);
    }
    
  2. or download this
    my $chld;
    do{
       $chld = wait();
    }while($chld >= 0);