changeset 3711:5acf09035d16

(shut_down_emacs): New arg STUFF. Stuff input here. (Fkill_emacs, fatal_error_signal): Pass new arg. (main) [GETPGRP_NO_ARG]: Really pass no arg to getpgrp.
author Richard M. Stallman <rms@gnu.org>
date Sun, 13 Jun 1993 02:06:51 +0000
parents 38e8dc7fd1e8
children 9e0f49a8f967
files src/emacs.c
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/emacs.c	Sun Jun 13 02:06:17 1993 +0000
+++ b/src/emacs.c	Sun Jun 13 02:06:51 1993 +0000
@@ -135,7 +135,7 @@
     {
       fatal_error_in_progress = 1;
 
-      shut_down_emacs (sig, 0);
+      shut_down_emacs (sig, 0, Qnil);
     }
 
 #ifdef VMS
@@ -301,7 +301,7 @@
 #ifdef BSD
   {
 #ifdef GETPGRP_NO_ARG
-    inherited_pgroup = getpgrp (0);
+    inherited_pgroup = getpgrp ();
 #else /* THISSENTENCE_NO_VERB */
     inherited_pgroup = getpgrp (0);
 #endif
@@ -652,7 +652,6 @@
 /* #ifdef VMS
   stop_vms_input ();
  #endif  */
-  stuff_buffered_input (arg);
 
   shut_down_emacs (0, 0);
 
@@ -677,9 +676,11 @@
 
    This is called by fatal signal handlers, X protocol error handlers,
    and Fkill_emacs.  */
+
 void
-shut_down_emacs (sig, no_x)
+shut_down_emacs (sig, no_x, stuff)
      int sig, no_x;
+     Lisp_Object stuff;
 {
   /* If we are controlling the terminal, reset terminal modes */
 #ifdef EMACS_HAVE_TTY_PGRP
@@ -703,6 +704,8 @@
   reset_sys_modes ();
 #endif
 
+  stuff_buffered_input (stuff);
+
   kill_buffer_processes (Qnil);
   Fdo_auto_save (Qt, Qnil);