# HG changeset patch # User Richard M. Stallman # Date 758225619 0 # Node ID 36d2fd17f833ea0927b986534de6693b66507a29 # Parent 261bf09dc10a9d8a130c8e13f6621570ac6eb81c (create_process): Set line discipline only if pty_flag. diff -r 261bf09dc10a -r 36d2fd17f833 src/process.c --- a/src/process.c Sun Jan 09 23:36:21 1994 +0000 +++ b/src/process.c Mon Jan 10 18:13:39 1994 +0000 @@ -1245,12 +1245,13 @@ #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); - } + if (pty_flag) + { + /* 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