Commit afc549fd authored by Richard M. Stallman's avatar Richard M. Stallman

(create_process): Set line discipline only if pty_flag.

parent f920c441
...@@ -1245,12 +1245,13 @@ create_process (process, new_argv, current_dir) ...@@ -1245,12 +1245,13 @@ create_process (process, new_argv, current_dir)
#endif /* USG */ #endif /* USG */
#endif /* not HAVE_SETSID */ #endif /* not HAVE_SETSID */
#ifdef NTTYDISC #ifdef NTTYDISC
{ if (pty_flag)
/* Use new line discipline. */ {
int ldisc = NTTYDISC; /* Use new line discipline. */
if (ioctl (xforkin, TIOCSETD, &ldisc) < 0) int ldisc = NTTYDISC;
write (1, "create_process/TIOCSETD failed\n", 31); if (ioctl (xforkin, TIOCSETD, &ldisc) < 0)
} write (1, "create_process/TIOCSETD failed\n", 31);
}
#endif #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
......
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