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

This commit is contained in:
Karl Heuer 1994-03-18 00:23:47 +00:00
parent 5a6e545216
commit ff773a4e16

View 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;