notice ^C exceptions when waiting for I/O
[ghc-hetmet.git] / rts / win32 / ConsoleHandler.c
index 25472cf..13011cb 100644 (file)
@@ -240,6 +240,9 @@ static BOOL WINAPI generic_handler(DWORD dwCtrlType)
            stg_pending_buf[stg_pending_events] = dwCtrlType;
            stg_pending_events++;
        }
+
+        // we need to wake up awaitEvent()
+        abandonRequestWait();
 #endif
        return TRUE;
     }