Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
In looking back at the code for tika-server's forking process and monitoring. We can simplify it quite a bit and make restarts more timely and efficient.
We should change a few Thread.sleep calls to process.waitFor() so that we're notified instantly if a forked process dies.
We don't need the pinging communication via stdout/stdin between forking and forked. The forking process can monitor the forked process via the forkedstatusfile and watching for an exit value on the process. The forked process can monitor its parent by blocking on a read of stdin.