Commit a3b1a468 authored by Dan Nicolaescu's avatar Dan Nicolaescu
Browse files

(kbd_buffer_get_event): Follow the non-interactive

case when running as a daemon before detaching.
parent c8d6b4bc
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.
......
......@@ -3978,7 +3978,10 @@ kbd_buffer_get_event (kbp, used_mouse_menu, end_time)
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment