in reply to $? is -1???
Since I'm paranoid about signal handlers and I tend to have code where the parent just hangs around waiting for the children, I don't usually install SIGCHLD, but just loop with waitpid/sleep on the PIDs I care about. If you don't have this luxury, try changing your waitpid to just wait for the pid's you care about.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: $? is -1???
by kscaldef (Pilgrim) on Jun 21, 2004 at 21:59 UTC | |
by bluto (Curate) on Jun 21, 2004 at 22:35 UTC | |
by kscaldef (Pilgrim) on Jun 21, 2004 at 23:00 UTC | |
by bluto (Curate) on Jun 21, 2004 at 23:02 UTC |