my $pid = fork(); if (!defined($pid)) { print "Could not fork!\n"; } elsif ($pid) { print " child pid was $pid\n"; } else { print "I am the child\n"; }
In reply to Re: Function to get a child pid
by gri6507
in thread Function to get a child pid
by Meridius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |