if (SignalHandler.shutdown_flag == 1) {
if (SignalHandler.shutdown_flag == 0) {
    static void await(java.lang.Object s) {        while (true) {            // Check shutdown flag.            if (SignalHandler.shutdown_flag == 1) {                break;            }            // Receive signal.            SignalHandler.receive(s);            // Handle signal.            SignalHandler.handle(s, 0);            // Send signal.            SignalHandler.send(s);            // Reset signal.            SignalHandler.reset(s);        }    }