summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib-src/timer.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib-src/timer.c b/lib-src/timer.c
index d6419ef4cc8..466425e30a8 100644
--- a/lib-src/timer.c
+++ b/lib-src/timer.c
@@ -293,8 +293,12 @@ main (argc, argv)
}
#endif /* USG */
+ /* In case Emacs sent some input before we set up
+ the handling of SIGIO, read it now. */
+ kill (0, SIGIO);
+
for (;;)
- pause ();
+ pause ();
}
/* timer.c ends here */