changeset 7058:1855e568a9b8

(create_process): Use SETUP_SLAVE_PTY only if pty_flag.
author Richard M. Stallman <rms@gnu.org>
date Sun, 24 Apr 1994 03:06:55 +0000
parents 7102dd374da4
children 6a55de48ade5
files src/process.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Sat Apr 23 21:38:16 1994 +0000
+++ b/src/process.c	Sun Apr 24 03:06:55 1994 +0000
@@ -1349,7 +1349,10 @@
 	  }
 #endif /* not UNIPLUS and not RTU */
 #ifdef SETUP_SLAVE_PTY
-	SETUP_SLAVE_PTY;
+	if (pty_flag)
+	  {
+	    SETUP_SLAVE_PTY;
+	  }
 #endif /* SETUP_SLAVE_PTY */
 #ifdef AIX
 	/* On AIX, we've disabled SIGHUP above once we start a child on a pty.