Mercurial > emacs
changeset 16053:649590c94d41
(create_process): Test defined (TIOCSCTTY)
and defined (HAVE_SETSID) instead of DONT_REOPEN_PTY.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 01 Sep 1996 21:56:24 +0000 |
parents | e528e99859e3 |
children | 2402c860793b |
files | src/process.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Sun Sep 01 21:38:48 1996 +0000 +++ b/src/process.c Sun Sep 01 21:56:24 1996 +0000 @@ -1436,7 +1436,8 @@ } #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 @@ 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)