• Denis Krjuchkov's avatar
    Win32Main.cxx: more clean shutdown · abb0fcb2
    Denis Krjuchkov authored
    This change fixes two issues:
    
    1) console_handler is called from a separate thread.
       Thread-safe primitive is required for correct operation.
    
    2) If console_handler returns TRUE our process is immediately terminated.
       We use Sleep() to give main thread an opportunity to shutdown correctly.
    abb0fcb2
Win32Main.cxx 4.32 KB