case when running as a daemon before detaching.
+2008-12-04 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * keyboard.c (kbd_buffer_get_event): Follow the non-interactive
+ case when running as a daemon before detaching.
+
2008-12-03 Juanma Barranquero <lekktu@gmail.com>
* w32.c (init_environment): Don't unload library shell32.dll.
register int c;
Lisp_Object obj;
- if (noninteractive)
+ if (noninteractive
+ /* In case we are running as a daemon, only do this before
+ detaching from the terminal. */
+ || (IS_DAEMON && daemon_pipe[1] >= 0))
{
c = getchar ();
XSETINT (obj, c);