summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-06-09 20:15:20 +0000
committerRichard M. Stallman <rms@gnu.org>1996-06-09 20:15:20 +0000
commit1fcebc939ee48430ed45873e57e9cd364588b9ba (patch)
tree3c6b8c973a5cd9c5d65e2353e8b3522c29a3a0a5 /src
parent4e4b94f379982dc07123259d62d5fdd973948f53 (diff)
downloademacs-1fcebc939ee48430ed45873e57e9cd364588b9ba.tar.gz
(create_process): Add DONT_OPEN_PTY conditional.
Diffstat (limited to 'src')
-rw-r--r--src/process.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 8e533784260..4446b2fdfea 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1436,7 +1436,7 @@ create_process (process, new_argv, current_dir)
}
#endif /* TIOCNOTTY */
-#if !defined (RTU) && !defined (UNIPLUS)
+#if !defined (RTU) && !defined (UNIPLUS) && !defined (DONT_REOPEN_PTY)
/*** There is a suggestion that this ought to be a
conditional on TIOCSPGRP. */
/* Now close the pty (if we had it open) and reopen it.
@@ -1465,7 +1465,8 @@ create_process (process, new_argv, current_dir)
ioctl (xforkout, TIOCSPGRP, &pgrp);
#endif
}
-#endif /* not UNIPLUS and not RTU */
+#endif /* not UNIPLUS and not RTU and not DONT_REOPEN_PTY */
+
#ifdef SETUP_SLAVE_PTY
if (pty_flag)
{