Mercurial > emacs
changeset 5347:21bffe027a7d
(create_process) [NTTYDISC]: Set the tty line discipline.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 25 Dec 1993 01:44:47 +0000 |
parents | 65beb670c6b1 |
children | f921e3c48dcb |
files | src/process.c |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/process.c Sat Dec 25 01:44:18 1993 +0000 +++ b/src/process.c Sat Dec 25 01:44:47 1993 +0000 @@ -1236,12 +1236,20 @@ #endif #else /* not HAVE_SETSID */ #ifdef USG - /* It's very important to call setpgrp() here and no time + /* It's very important to call setpgrp here and no time afterwards. Otherwise, we lose our controlling tty which is set when we open the pty. */ setpgrp (); #endif /* USG */ #endif /* not HAVE_SETSID */ +#ifdef NTTYDISC + { + /* Use new line discipline. */ + int ldisc = NTTYDISC; + if (ioctl (xforkin, TIOCSETD, &ldisc) < 0) + write (1, "create_process/TIOCSETD failed\n", 31); + } +#endif #ifdef TIOCNOTTY /* In 4.3BSD, the TIOCSPGRP bug has been fixed, and now you can do TIOCSPGRP only to the process's controlling tty. */