]> code.delx.au - gnu-emacs/commitdiff
Include blockinput.h.
authorRichard M. Stallman <rms@gnu.org>
Mon, 30 Dec 1996 01:26:08 +0000 (01:26 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 30 Dec 1996 01:26:08 +0000 (01:26 +0000)
(create_process): Block input around the fork.

src/process.c

index 3325ffc1cea4b062e9ca4f1ab70c12aaeafe6e9e..830e559f18830cabfccdbb2056e6e4b9f0af1021 100644 (file)
@@ -103,6 +103,7 @@ Boston, MA 02111-1307, USA.  */
 #include "termopts.h"
 #include "commands.h"
 #include "frame.h"
+#include "blockinput.h"
 
 Lisp_Object Qprocessp;
 Lisp_Object Qrun, Qstop, Qsignal, Qopen, Qclosed;
@@ -1359,6 +1360,8 @@ create_process (process, new_argv, current_dir)
      processes to get their return values scrambled.  */
   XSETINT (XPROCESS (process)->pid, -1);
 
+  BLOCK_INPUT;
+  
   {
     /* child_setup must clobber environ on systems with true vfork.
        Protect it from permanent change.  */
@@ -1528,6 +1531,8 @@ create_process (process, new_argv, current_dir)
     environ = save_environ;
   }
 
+  UNBLOCK_INPUT;
+
   /* This runs in the Emacs process.  */
   if (pid < 0)
     {