changeset 5548:36d2fd17f833

(create_process): Set line discipline only if pty_flag.
author Richard M. Stallman <rms@gnu.org>
date Mon, 10 Jan 1994 18:13:39 +0000
parents 261bf09dc10a
children b36de4d370be
files src/process.c
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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