- All Implemented Interfaces:
- java.lang.Runnable
- Enclosing class:
- ForkedMain
private static class ForkedMain.HangupThread
extends java.lang.Thread
Hangup thread will detach us from the host VM properly, in three cases:
- normal shutdown
- shutdown with benchmark exception
- any System.exit call
The need to intercept System.exit calls is the reason to register ourselves
as the shutdown hook. Additionally, this thread runs only when all non-daemon
threads are stopped, and therefore the stray user threads would be reported
by shutdown timeout thread over still alive binary link.