in reply to Re: system() returns -1 with $SIG{CHLD}?
in thread system() returns -1 with $SIG{CHLD}?
When running the code I get -1 from wait and 0 from system. $! tells me No child processes. That makes sense since both system also does a wait.
Why are you using $SIG{CHLD} with system? You shouldn't wait for a child launched using system.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: system() returns -1 with $SIG{CHLD}?
by cmv (Chaplain) on Feb 11, 2009 at 21:48 UTC | |
by ikegami (Patriarch) on Feb 11, 2009 at 22:02 UTC |