]> code.delx.au - gnu-emacs/blobdiff - src/w32inevt.c
* atimer.c (run_timers, alarm_signal_handler):
[gnu-emacs] / src / w32inevt.c
index 0e5d4dd1f23209ba5bf533c4dc787977c7436fb7..7552ff17bb9e36acd6e4677a75884944cd12f433 100644 (file)
@@ -1,6 +1,6 @@
 /* Input event support for Emacs on the Microsoft W32 API.
    Copyright (C) 1992, 1993, 1995, 2001, 2002, 2003, 2004, 2005, 2006,
-                 2007, 2008  Free Software Foundation, Inc.
+                 2007, 2008, 2009  Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -651,10 +651,16 @@ w32_console_read_socket (struct terminal *terminal,
   if (interrupt_input_blocked)
     {
       interrupt_input_pending = 1;
+#ifdef SYNC_INPUT
+      pending_signals = 1;
+#endif
       return -1;
     }
 
   interrupt_input_pending = 0;
+#ifdef SYNC_INPUT
+  pending_signals = pending_atimers;
+#endif
   BLOCK_INPUT;
 
   for (;;)