in reply to Signal to parent-process. Does it affect it's children?
I think the problem is that waitpid does not continue after the signal has been processed, however the child process is still running. I suggest putting a loop around waitpid. The return value of waitpid should give you a hint if the child actually exited or if a signal has interrupted the call.
Update: By the way, I don't think that you need to set the signal handler again in status. Once it has been set, it gets executed every time a USR1 signal arrives.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Signal to parent-process. Does it affect it's children?
by rapide (Beadle) on Sep 07, 2008 at 18:42 UTC | |
by tilly (Archbishop) on Sep 09, 2008 at 21:45 UTC |