From e9bf058bcefafbea5ebe3270f39097d4a8e7416e Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 9 Jun 1996 20:15:20 +0000 Subject: [PATCH] (create_process): Add DONT_OPEN_PTY conditional. --- src/process.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/process.c b/src/process.c index 8e53378426..4446b2fdfe 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) { -- 2.20.1