Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: does system() return a pid?by ikegami (Patriarch) |
on Oct 11, 2015 at 03:09 UTC ( [id://1144409]=note: print w/replies, xml ) | Need Help?? |
On Windows and only there, the special calling convention system(1, ...) spawns a process and returns immediately. The child process's PID is returned.
All the other ways of calling system wait for the child to finish and reaps it. It would make no sense for them to return the PID of a process that no longer exists, so they do not return the child's PID.
In Section
Seekers of Perl Wisdom
|
|