| You must mean "signal" masks, not segment masks, right?
If so, there's no major change in signal mask behvavior in
threads between 3.2 and 4.0. Each thread has its own signal
mask (there is no process signal mask). Before 4.0, a
thread sets its signal mask using sigprocmask; for 4.0,
it must use pthread_sigmask.
When you refer to child processes, do you mean threads
instead?
One thing to know is this: the signal mask of the thread
that calls pthread_create is inherited by the new thread.
And the signal mask of the process that calls fork is
inherited by the child process.
I have no idea if any this will help, but at least we can
start a dialogue....
|
| Also if the only reason you are playing with signals is in
order to reap zombie/defunct child processes, and you don't
care to check their exit status, etc, look at the man
page for sigaction and the SA_NOCLDWAIT flag .....
|