Removing the zombie process.
800399Mar 10 2009 — edited Mar 10 2009Hi All,
I have requirement something like this.
I have a JAVA thread from where I am using JNI wrapper (C Program).
From my JNI wrapper i am forking a child process (i.e child1) ( in my C orgram).
And in my JAVA parent process ( my code is a thread of the parent JAVA process) doest accept the SIGCHLD signal.
As a result when child1 exits it becomes ZOMBIE.
The parent process (JAVA process) performs lot more oprations so I cannot include signal handler for SIGCHLD signal there.
Can any one help me out by giving some suggestions...
I have read commands like /usr/sbin/preap which clears the zombie process. Can I include some code similar to preap in my JNI part to kill reap the ZOMBIE.?
Any suggestions will be highly appreciated.
Regards,
Rahul.