summaryrefslogtreecommitdiff
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-09-01 21:56:24 +0000
committerRichard M. Stallman <rms@gnu.org>1996-09-01 21:56:24 +0000
commit864c29c0e0f8a42a93c9c7699799edab90651866 (patch)
treeb97cac5c404ba792f4d61bd77671118b92366369 /src/process.c
parenta8667dbdf9a9dccbd46c8643e557420fb773d91c (diff)
downloademacs-864c29c0e0f8a42a93c9c7699799edab90651866.tar.gz
(create_process): Test defined (TIOCSCTTY)
and defined (HAVE_SETSID) instead of DONT_REOPEN_PTY.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index eac1f839f99..0fb8969d402 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1436,7 +1436,8 @@ create_process (process, new_argv, current_dir)
}
#endif /* TIOCNOTTY */
-#if !defined (RTU) && !defined (UNIPLUS) && !defined (DONT_REOPEN_PTY)
+#if !defined (RTU) && !defined (UNIPLUS)
+#if !(defined (HAVE_SETSID) && defined (TIOCSCTTY))
/*** 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 +1466,8 @@ create_process (process, new_argv, current_dir)
ioctl (xforkout, TIOCSPGRP, &pgrp);
#endif
}
-#endif /* not UNIPLUS and not RTU and not DONT_REOPEN_PTY */
+#endif /* not (HAVE_SETSID and TIOCSCTTY) */
+#endif /* not UNIPLUS and not RTU */
#ifdef SETUP_SLAVE_PTY
if (pty_flag)