also in batch mode.
* xgselect.c (xg_select): Read glib events in any case, even if
there are no file descriptors to watch for. (Bug#16519)
+2014-02-04 Michael Albinus <michael.albinus@gmx.de>
+
+ * keyboard.c (kbd_buffer_get_event): Read file notification events
+ also in batch mode.
+
+ * xgselect.c (xg_select): Read glib events in any case, even if
+ there are no file descriptors to watch for. (Bug#16519)
+
2014-02-03 Martin Rudalics <rudalics@gmx.at>
* dispextern.h (face_id): Add WINDOW_DIVIDER_FIRST_PIXEL_FACE_ID
}
#endif /* subprocesses */
-#ifndef HAVE_DBUS /* We want to read D-Bus events in batch mode. */
+#if !defined HAVE_DBUS && !defined USE_FILE_NOTIFY
if (noninteractive
/* In case we are running as a daemon, only do this before
detaching from the terminal. */
*kbp = current_kboard;
return obj;
}
-#endif /* ! HAVE_DBUS */
+#endif /* !defined HAVE_DBUS && !defined USE_FILE_NOTIFY */
/* Wait until there is input available. */
for (;;)
}
}
- if (our_fds > 0 || (nfds == 0 && tmop == &tmo))
- {
-
- /* If Gtk+ is in use eventually gtk_main_iteration will be called,
- unless retval is zero. */
+ /* If Gtk+ is in use eventually gtk_main_iteration will be called,
+ unless retval is zero. */
#ifdef USE_GTK
- if (retval == 0)
+ if (retval == 0)
#endif
- while (g_main_context_pending (context))
- g_main_context_dispatch (context);
+ while (g_main_context_pending (context))
+ g_main_context_dispatch (context);
- /* To not have to recalculate timeout, return like this. */
- if (retval == 0)
- {
- retval = -1;
- errno = EINTR;
- }
+ /* To not have to recalculate timeout, return like this. */
+ if ((our_fds > 0 || (nfds == 0 && tmop == &tmo)) && (retval == 0))
+ {
+ retval = -1;
+ errno = EINTR;
}
return retval;