|
From: Richard E. <rem...@ed...> - 2004-03-15 14:53:35
|
Leif, You are correct, if the JVM is really hung, then sending it a SIGTERM will do no good. I have a process that the wrapper manages and that process has a subprocess. The process has a shutdown hook which will kill the subprocess when the process receives a SIGTERM; the process's shutdown hooks are not invoked when it receives a SIGKILL. ... nothing new here. What I've now done is when the wrapper launches the process, if it detects that there is a subprocess running (from a previous run), it will tell the old subprocess to die before it creates its new subprocess. For my situation this works because I have only one, well known subprocess with a well known communication port. Thanks, Richard |