Commit ff773a4e authored by Karl Heuer's avatar Karl Heuer

(create_process): Skip the ioctl if fd is -1.

parent 5a6e5452
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment