Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Showing results for 
Search instead for 
Did you mean: 

Implementation of UNIXProcess.destroy in the JNI

Peter Suggitt
Occasional Contributor

Implementation of UNIXProcess.destroy in the JNI


When a process destroy is called on UNIXProcess implementation in the v1.4.2_04 jre for linux what heppens underneath the JRE? All I can see is that for a given PID, the JNI interfaces a method called
private static native void destroyProcess(int pid);

What is the logic for this method .. how does it make sure that the process dies? What signals is it sending to the OS? Any info would be helpful .. or a copy of the implementation if anyone has it would be cool too.

Thanks in advance
Peter Suggitt
Occasional Contributor

Re: Implementation of UNIXProcess.destroy in the JNI

The only thing that I have been able to ascertain is that the signal that is sent to the underlying process is a SIGTERM (15).

What if the process refuses to die? Does it issue other signals .. eg SIGKILL?