src/emacs.c (Fkill_emacs): Exit with specified exit code even if
stdin is at EOF.
+2015-02-18 Eli Zaretskii <eliz@gnu.org>
+
+ * emacs.c (Fkill_emacs): Exit with specified exit code even if
+ stdin is at EOF. (Bug#19897)
+
2015-02-18 Oscar Fuentes <ofv@wanadoo.es>
* keyboard.c (read_char): When there is an input method function,
GCPRO1 (arg);
- if (feof (stdin))
- arg = Qt;
-
/* Fsignal calls emacs_abort () if it sees that waiting_for_input is
set. */
waiting_for_input = 0;
x_clipboard_manager_save_all ();
#endif
- shut_down_emacs (0, STRINGP (arg) ? arg : Qnil);
+ shut_down_emacs (0, (STRINGP (arg) && !feof (stdin)) ? arg : Qnil);
#ifdef HAVE_NS
ns_release_autorelease_pool (ns_pool);