Help for this page

Select Code to Download


  1. or download this
    my $pid = fork;
    unless (defined($pid))     {
    ...
    close(STDIN);close(STDOUT);close(STDERR);
    fork() && exit 0;
    exec("$command") or return 0;
    
  2. or download this
    print STDERR "worker ending";
    exit 0;