# HG changeset patch # User Richard M. Stallman # Date 841724000 0 # Node ID 5d1e0290bbd0b94b4c53ddcf4296431a86eb1795 # Parent 1fd0ed653ce617b8bf4c06bb5eb5312f823d726f (create_process): Undo previous change. diff -r 1fd0ed653ce6 -r 5d1e0290bbd0 src/process.c --- a/src/process.c Mon Sep 02 17:43:56 1996 +0000 +++ b/src/process.c Tue Sep 03 04:13:20 1996 +0000 @@ -1446,10 +1446,13 @@ } #endif /* TIOCNOTTY */ -#if !defined (RTU) && !defined (UNIPLUS) -#if !(defined (HAVE_SETSID) && defined (TIOCSCTTY)) +#if !defined (RTU) && !defined (UNIPLUS) && !defined (DONT_REOPEN_PTY) /*** There is a suggestion that this ought to be a - conditional on TIOCSPGRP. */ + conditional on TIOCSPGRP, + or !(defined (HAVE_SETSID) && defined (TIOCSCTTY)). + Trying the latter gave the wrong results on Debian GNU/Linux 1.1; + that system does seem to need this code, even though + both HAVE_SETSID and TIOCSCTTY are defined. */ /* Now close the pty (if we had it open) and reopen it. This makes the pty the controlling terminal of the subprocess. */ if (pty_flag) @@ -1476,8 +1479,7 @@ ioctl (xforkout, TIOCSPGRP, &pgrp); #endif } -#endif /* not (HAVE_SETSID and TIOCSCTTY) */ -#endif /* not UNIPLUS and not RTU */ +#endif /* not UNIPLUS and not RTU and not DONT_REOPEN_PTY */ #ifdef SETUP_SLAVE_PTY if (pty_flag)