From: Richard M. Stallman Date: Mon, 10 Jan 1994 18:13:39 +0000 (+0000) Subject: (create_process): Set line discipline only if pty_flag. X-Git-Tag: emacs-19.34~10303 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=afc549fd998d2f66b8dfda37d86bb27046938215;p=emacs.git (create_process): Set line discipline only if pty_flag. --- diff --git a/src/process.c b/src/process.c index d43b4880f7b..301a44dd534 100644 --- a/src/process.c +++ b/src/process.c @@ -1245,12 +1245,13 @@ create_process (process, new_argv, current_dir) #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