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.
In reply to Re: $? is -1???
by bluto
in thread $? is -1???
by kscaldef
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |