how parent process again restarts killed child processes??
Hi,
I have a parent process which spawns 4 child processes. Parent is handling SIGCHLD signal for child termination. Now i am killing one child process like - "kill -9 PID1". After that parent process receives SIGCHLD signal and kills the remaining 3 child processes running. But these 3 child processes, terminated by parent process are sending SIGCHILD signal to parent process which i don't want. So how to avoid/discard the SIGCHILD signal in parent process for these 3 child processes killed?? And without exiting the parent process i have to spawn these 4 child processes again. so how to do this? |
Child process exit causes OS to send SIGCHILD, but it can be ignored. Tell us which prog lang you are using and show relevant code section.
|
All times are GMT -5. The time now is 07:51 PM. |