in reply to Re: forking and timeouts
in thread forking and timeouts

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.

Replies are listed 'Best First'.
Re^3: forking and timeouts
by ww (Archbishop) on Aug 09, 2007 at 13:30 UTC
    ++, almut. Missed that.

    I do indeed stand corrected.