Can $pid be a negative number?
In this case $pid is the return value of wait, which is (according to the docs) ...the pid of the deceased process, or "-1" if there are no child processes.
In reply to Re^2: forking and timeouts
by almut
in thread forking and timeouts
by Earindil
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |