(create_process): Skip the ioctl if fd is -1.
This commit is contained in:
parent
5a6e545216
commit
ff773a4e16
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue