]> git.eshelyaron.com Git - emacs.git/commitdiff
(create_process): Skip the ioctl if fd is -1.
authorKarl Heuer <kwzh@gnu.org>
Fri, 18 Mar 1994 00:23:47 +0000 (00:23 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 18 Mar 1994 00:23:47 +0000 (00:23 +0000)
src/process.c

index 6e9da96bf0719fda73ab5a93b8c9ba5db0db8e6a..8db5209620dca52618bec4d4e3ae0c2ff78dd4fe 100644 (file)
@@ -1275,7 +1275,7 @@ create_process (process, new_argv, current_dir)
 #endif /* USG */
 #endif /* not HAVE_SETSID */
 #ifdef NTTYDISC
-       if (pty_flag)
+       if (pty_flag && xforkin >= 0)
          {
            /* Use new line discipline.  */
            int ldisc = NTTYDISC;