Hi, I've been noticing that the JBrowserDriverServer child process is left running indefinitely when I kill my application while the child process is mid-execution.
A shutdown hook on the parent JVM is not totally reliable since it's not called if the parent process is forcibly terminated.
So I added a HeartbeatServer to the child process. The parent process sends the child process a heartbeat "ping" every 5 seconds, and the child process calls System.exit() if it has not heard from the parent process in over a minute.
Hi, I've been noticing that the JBrowserDriverServer child process is left running indefinitely when I kill my application while the child process is mid-execution.
A shutdown hook on the parent JVM is not totally reliable since it's not called if the parent process is forcibly terminated.
So I added a HeartbeatServer to the child process. The parent process sends the child process a heartbeat "ping" every 5 seconds, and the child process calls System.exit() if it has not heard from the parent process in over a minute.