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;