Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Removing the zombie process.

800399Mar 10 2009 — edited Mar 10 2009
Hi 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2009
Added on Mar 10 2009
3 comments
422 views