Commit 000ab717 authored by Richard M. Stallman's avatar Richard M. Stallman

(create_process) [NTTYDISC]: Set the tty line discipline.

parent f72ea981
...@@ -1236,12 +1236,20 @@ create_process (process, new_argv, current_dir) ...@@ -1236,12 +1236,20 @@ create_process (process, new_argv, current_dir)
#endif #endif
#else /* not HAVE_SETSID */ #else /* not HAVE_SETSID */
#ifdef USG #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 afterwards. Otherwise, we lose our controlling tty which
is set when we open the pty. */ is set when we open the pty. */
setpgrp (); setpgrp ();
#endif /* USG */ #endif /* USG */
#endif /* not HAVE_SETSID */ #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 #ifdef TIOCNOTTY
/* In 4.3BSD, the TIOCSPGRP bug has been fixed, and now you /* In 4.3BSD, the TIOCSPGRP bug has been fixed, and now you
can do TIOCSPGRP only to the process's controlling tty. */ can do TIOCSPGRP only to the process's controlling tty. */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment