# HG changeset patch # User Karl Heuer # Date 767395039 0 # Node ID d35b11eed89f07585241f858390cba35d3ed4ad8 # Parent 9a9e88e6561751c34b9b08bbe3822f3eed7885f2 (create_process) [HAVE_TERMIOS && LDISC1]: Use tcsetattr. diff -r 9a9e88e65617 -r d35b11eed89f src/process.c --- a/src/process.c Tue Apr 26 20:24:51 1994 +0000 +++ b/src/process.c Tue Apr 26 21:17:19 1994 +0000 @@ -1295,6 +1295,16 @@ setpgrp (); #endif /* USG */ #endif /* not HAVE_SETSID */ +#if defined (HAVE_TERMIOS) && defined (LDISC1) + if (pty_flag && xforkin >= 0) + { + struct termios t; + tcgetattr (xforkin, &t); + t.c_lflag = LDISC1; + if (tcsetattr (xforkin, TCSANOW, &t) < 0) + write (1, "create_process/tcsetattr LDISC1 failed\n", 39); + } +#else #if defined (NTTYDISC) && defined (TIOCSETD) if (pty_flag && xforkin >= 0) { @@ -1304,6 +1314,7 @@ write (1, "create_process/TIOCSETD failed\n", 31); } #endif +#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. */