summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-03-18 00:23:47 +0000
committerKarl Heuer <kwzh@gnu.org>1994-03-18 00:23:47 +0000
commitff773a4e166e0b84f4a34135321d6bd35e07943e (patch)
treea824dc931e07331fdd76e6305e1c0c55b31006dc /src
parent5a6e5452167f81878a8af4a31e884822a95a6a59 (diff)
downloademacs-ff773a4e166e0b84f4a34135321d6bd35e07943e.tar.gz
(create_process): Skip the ioctl if fd is -1.
Diffstat (limited to 'src')
-rw-r--r--src/process.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index 6e9da96bf07..8db5209620d 100644
--- a/src/process.c
+++ b/src/process.c
@@ -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;