- or download this
#Start fork
...
print "done with pid $tmp";
}
- or download this
$SIG{INT}=\&ctrl_c_handler;
...
my $tmp = waitpid($child, 0);
}
}
- or download this
my $t = threads->new (sub{
local $SIG{'USR1'}=sub {threads->exit();};
...
});
my $result = $t->join();