]> git.eshelyaron.com Git - emacs.git/commitdiff
(create_process): Use SETUP_SLAVE_PTY only if pty_flag.
authorRichard M. Stallman <rms@gnu.org>
Sun, 24 Apr 1994 03:06:55 +0000 (03:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 24 Apr 1994 03:06:55 +0000 (03:06 +0000)
src/process.c

index c2b086e810df634a5dbceddbe5a7403e7682b97c..c7262fc79e895b30d611228db5db8b8b236452e5 100644 (file)
@@ -1349,7 +1349,10 @@ create_process (process, new_argv, current_dir)
          }
 #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.