From: YAMAMOTO Mitsuharu
(Fcall_process): Block input around vfork.
This commit is contained in:
parent
ae8bc416df
commit
aba637ec5b
1 changed files with 5 additions and 0 deletions
|
@ -83,6 +83,7 @@ extern int errno;
|
|||
#include "process.h"
|
||||
#include "syssignal.h"
|
||||
#include "systty.h"
|
||||
#include "blockinput.h"
|
||||
|
||||
#ifdef MSDOS
|
||||
#include "msdos.h"
|
||||
|
@ -624,6 +625,8 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
|
|||
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 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
|
|||
child_setup (filefd, fd1, fd_error, (char **) new_argv,
|
||||
0, current_dir);
|
||||
}
|
||||
|
||||
UNBLOCK_INPUT;
|
||||
#endif /* not WINDOWSNT */
|
||||
|
||||
/* The MSDOS case did this already. */
|
||||
|
|
Loading…
Add table
Reference in a new issue