(create_process): Use child_setup_tty only if pty_flag.
This commit is contained in:
parent
13a72104de
commit
ab01d0a826
1 changed files with 2 additions and 1 deletions
|
@ -1376,7 +1376,8 @@ create_process (process, new_argv, current_dir)
|
|||
#endif /* not BSD4_1 */
|
||||
#endif /* SIGCHLD */
|
||||
|
||||
child_setup_tty (xforkout);
|
||||
if (pty_flag)
|
||||
child_setup_tty (xforkout);
|
||||
child_setup (xforkin, xforkout, xforkout,
|
||||
new_argv, 1, current_dir);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue