aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman1996-09-03 04:13:20 +0000
committerRichard M. Stallman1996-09-03 04:13:20 +0000
commit99153b9e0e67a0fe664c206677f60fd5018da693 (patch)
treebbcfce9afdb3b8a2ac8a24d396d8137f26130af7 /src/process.c
parentb59a6343c23f14a661644f1beebbce77de41ab06 (diff)
downloademacs-99153b9e0e67a0fe664c206677f60fd5018da693.tar.gz
emacs-99153b9e0e67a0fe664c206677f60fd5018da693.zip
(create_process): Undo previous change.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/process.c b/src/process.c
index aa7bd1300e2..be450f936e5 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1446,10 +1446,13 @@ create_process (process, new_argv, current_dir)
1446 } 1446 }
1447#endif /* TIOCNOTTY */ 1447#endif /* TIOCNOTTY */
1448 1448
1449#if !defined (RTU) && !defined (UNIPLUS) 1449#if !defined (RTU) && !defined (UNIPLUS) && !defined (DONT_REOPEN_PTY)
1450#if !(defined (HAVE_SETSID) && defined (TIOCSCTTY))
1451/*** There is a suggestion that this ought to be a 1450/*** There is a suggestion that this ought to be a
1452 conditional on TIOCSPGRP. */ 1451 conditional on TIOCSPGRP,
1452 or !(defined (HAVE_SETSID) && defined (TIOCSCTTY)).
1453 Trying the latter gave the wrong results on Debian GNU/Linux 1.1;
1454 that system does seem to need this code, even though
1455 both HAVE_SETSID and TIOCSCTTY are defined. */
1453 /* Now close the pty (if we had it open) and reopen it. 1456 /* Now close the pty (if we had it open) and reopen it.
1454 This makes the pty the controlling terminal of the subprocess. */ 1457 This makes the pty the controlling terminal of the subprocess. */
1455 if (pty_flag) 1458 if (pty_flag)
@@ -1476,8 +1479,7 @@ create_process (process, new_argv, current_dir)
1476 ioctl (xforkout, TIOCSPGRP, &pgrp); 1479 ioctl (xforkout, TIOCSPGRP, &pgrp);
1477#endif 1480#endif
1478 } 1481 }
1479#endif /* not (HAVE_SETSID and TIOCSCTTY) */ 1482#endif /* not UNIPLUS and not RTU and not DONT_REOPEN_PTY */
1480#endif /* not UNIPLUS and not RTU */
1481 1483
1482#ifdef SETUP_SLAVE_PTY 1484#ifdef SETUP_SLAVE_PTY
1483 if (pty_flag) 1485 if (pty_flag)