summaryrefslogtreecommitdiff
path: root/src/w32inevt.c
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2013-11-28 21:40:15 +0200
committerEli Zaretskii <eliz@gnu.org>2013-11-28 21:40:15 +0200
commit9c099ca7fd30b424b3e2f183652de888cd9b30b7 (patch)
tree7823c33618b120f588addcfc4321eeeb4e4da901 /src/w32inevt.c
parent16555151e0051faad2838505e80fcbd1f744cb9e (diff)
Fix bug #15933 with crashes in file-notify-tests on MS-Windows.
Support w32 file notifications in batch mode. src/w32proc.c (sys_select): Don't wait on interrupt_handle if it is invalid (which happens in batch mode). If non-interactive, call handle_file_notifications to store file notification events in the input queue. src/w32notify.c (send_notifications): Handle FRAME_INITIAL frames as well. src/w32inevt.c (handle_file_notifications): Now external, not static. src/w32term.h (handle_file_notifications): Provide prototype. src/emacs.c (main) [HAVE_W32NOTIFY]: When non-interactive, call init_crit, since init_display, which does that otherwise, is not called.
Diffstat (limited to 'src/w32inevt.c')
-rw-r--r--src/w32inevt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32inevt.c b/src/w32inevt.c
index dc587de118..a157cb5c1d 100644
--- a/src/w32inevt.c
+++ b/src/w32inevt.c
@@ -608,7 +608,7 @@ maybe_generate_resize_event (void)
}
#if HAVE_W32NOTIFY
-static int
+int
handle_file_notifications (struct input_event *hold_quit)
{
BYTE *p = file_notifications;
@@ -676,7 +676,7 @@ handle_file_notifications (struct input_event *hold_quit)
return nevents;
}
#else /* !HAVE_W32NOTIFY */
-static int
+int
handle_file_notifications (struct input_event *hold_quit)
{
return 0;