in reply to Getting the pid of the process launched by my perl program
$SIG{CHLD} = 'IGNORE'; # on systems where it's supported defined( my $pid = fork ) or die "fork: $!"; if ( $pid ) { # parent print "child pid is $pid\n"; } else { # child exec("a.out") or die "exec: $!"; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Getting the pid of the process launched by my perl program
by Anonymous Monk on Dec 22, 2004 at 11:05 UTC | |
Re^2: Getting the pid of the process launched by my perl program
by Anonymous Monk on Apr 12, 2010 at 11:20 UTC |