in reply to Re: Re: Re: Waitpid Woes
in thread Waitpid Woes

Duh.

Doesn't solve my real problem, but solves my test problem, thanks.

                - Ant
                - Some of my best work - (1 2 3)

Replies are listed 'Best First'.
Re5: Waitpid Woes
by bluto (Curate) on Dec 17, 2003 at 19:49 UTC
    Not sure this helps, but the only time I've seen waitpid return -1 (aka 255) when it should have returned something useful was when I was mixing it with perl's builtin backticks/system()/rx() which reap children themselves (i.e. one starts reaping children it's not responsible for).
      return from waitpid, or the value in $? not backticking... and I am getting back the pids I expect, so I doubt they are being reaped somewhere else...

                      - Ant
                      - Some of my best work - (1 2 3)