diff src/process.c @ 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 dbc1d920ef5c
children fd7524d61a8d
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