changeset 6393:7de1d288460e

(create_process): Skip the ioctl if fd is -1.
author Karl Heuer <kwzh@gnu.org>
date Fri, 18 Mar 1994 00:23:47 +0000
parents 58e075552627
children a829e7875542
files src/process.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Fri Mar 18 00:13:40 1994 +0000
+++ b/src/process.c	Fri Mar 18 00:23:47 1994 +0000
@@ -1275,7 +1275,7 @@
 #endif /* USG */
 #endif /* not HAVE_SETSID */
 #ifdef NTTYDISC
-	if (pty_flag)
+	if (pty_flag && xforkin >= 0)
 	  {
 	    /* Use new line discipline.  */
 	    int ldisc = NTTYDISC;