- or download this
$pid=fork();
exec("notepad");
$SIG{INT}=\&handler;
sub handler { kill 1,$pid; }
- or download this
my $pid = fork() ; die "fork failed '$!'" if !defined($pid) ;
...
while ($r) { sleep(1) } ;
print "And we're done\n" ;
- or download this
use strict ; use warnings ;
...
while ($run) { sleep(1) } ;
print "And we're done\n" ;