You could also be notified with SIGCHLD whenever your child exits, if you do it in reverse.
I don't know of a way to do what you want reliably, but there are many other ways to get the same results.
In reply to Re: atomic operations
by nothingmuch
in thread atomic operations
by kcella
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |