problem in reforking and signal handling

hi friends i have a problem in signal handling ...
let me explain my problem clearly..
i have four process ..
main process forks two child process and each child process again forks another new process respectively...
the problem is whenever i kill the child process it is reforking and the corresponding its own child process is killed and reforked.. but when i again kill the reforked process of child's new process... it is gettin defunt... :frowning: am handling sigchld to kill the child process
is ther any solution for this problem...

please let me know the solution soon ..

Please read the rules of the forum first !

You are not supposed to bump up posts.

---------- Post updated at 05:15 PM ---------- Previous update was at 05:04 PM ----------

No, you haven't. At least to me.

With this you have 5 process in total.

P

C    C

GC  GC

Did you mean 4 process apart from the base process?

Did you mean level-1 child or the level-2 child?

This is stating that child exit status is not taken care/handled by the parent process.

Would you mind to show your code / atleast the snippet?