diff options
Diffstat (limited to 'src/callproc.c')
-rw-r--r-- | src/callproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/callproc.c b/src/callproc.c index e8e4c48b5be..2d457b3c84c 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1574,7 +1574,7 @@ emacs_spawn (pid_t *newpid, int std_in, int std_out, int std_err, #endif /* not DONT_REOPEN_PTY */ #ifdef SETUP_SLAVE_PTY - if (pty_flag) + if (pty_in && std_in >= 0) { SETUP_SLAVE_PTY; } |