changeset 57892:0cdbbc7bf06a

From: YAMAMOTO Mitsuharu (Fcall_process): Block input around vfork.
author Kim F. Storm <storm@cua.dk>
date Tue, 02 Nov 2004 10:10:35 +0000
parents d6fcbf7b7da4
children 41263d3a8d8b
files src/callproc.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/callproc.c	Tue Nov 02 10:09:50 2004 +0000
+++ b/src/callproc.c	Tue Nov 02 10:10:35 2004 +0000
@@ -83,6 +83,7 @@
 #include "process.h"
 #include "syssignal.h"
 #include "systty.h"
+#include "blockinput.h"
 
 #ifdef MSDOS
 #include "msdos.h"
@@ -624,6 +625,8 @@
     pid = child_setup (filefd, fd1, fd_error, (char **) new_argv,
 		       0, current_dir);
 #else  /* not WINDOWSNT */
+    BLOCK_INPUT;
+
     pid = vfork ();
 
     if (pid == 0)
@@ -641,6 +644,8 @@
 	child_setup (filefd, fd1, fd_error, (char **) new_argv,
 		     0, current_dir);
       }
+
+    UNBLOCK_INPUT;
 #endif /* not WINDOWSNT */
 
     /* The MSDOS case did this already.  */