aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c
index 3325ffc1cea..830e559f188 100644
--- a/src/process.c
+++ b/src/process.c
@@ -103,6 +103,7 @@ Boston, MA 02111-1307, USA. */
103#include "termopts.h" 103#include "termopts.h"
104#include "commands.h" 104#include "commands.h"
105#include "frame.h" 105#include "frame.h"
106#include "blockinput.h"
106 107
107Lisp_Object Qprocessp; 108Lisp_Object Qprocessp;
108Lisp_Object Qrun, Qstop, Qsignal, Qopen, Qclosed; 109Lisp_Object Qrun, Qstop, Qsignal, Qopen, Qclosed;
@@ -1359,6 +1360,8 @@ create_process (process, new_argv, current_dir)
1359 processes to get their return values scrambled. */ 1360 processes to get their return values scrambled. */
1360 XSETINT (XPROCESS (process)->pid, -1); 1361 XSETINT (XPROCESS (process)->pid, -1);
1361 1362
1363 BLOCK_INPUT;
1364
1362 { 1365 {
1363 /* child_setup must clobber environ on systems with true vfork. 1366 /* child_setup must clobber environ on systems with true vfork.
1364 Protect it from permanent change. */ 1367 Protect it from permanent change. */
@@ -1528,6 +1531,8 @@ create_process (process, new_argv, current_dir)
1528 environ = save_environ; 1531 environ = save_environ;
1529 } 1532 }
1530 1533
1534 UNBLOCK_INPUT;
1535
1531 /* This runs in the Emacs process. */ 1536 /* This runs in the Emacs process. */
1532 if (pid < 0) 1537 if (pid < 0)
1533 { 1538 {