]> git.eshelyaron.com Git - emacs.git/commitdiff
(create_process) [NTTYDISC]: Set the tty line discipline.
authorRichard M. Stallman <rms@gnu.org>
Sat, 25 Dec 1993 01:44:47 +0000 (01:44 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 25 Dec 1993 01:44:47 +0000 (01:44 +0000)
src/process.c

index 107bc05d28a14798d0b2dd45cb5c4452457b99a7..031bca2faab10182d0398b731b4b7f015f72fabe 100644 (file)
@@ -1236,12 +1236,20 @@ create_process (process, new_argv, current_dir)
 #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.  */