(create_process): Use SETUP_SLAVE_PTY only if pty_flag.
This commit is contained in:
parent
8a9e86e647
commit
13a72104de
1 changed files with 4 additions and 1 deletions
|
@ -1349,7 +1349,10 @@ create_process (process, new_argv, current_dir)
|
|||
}
|
||||
#endif /* not UNIPLUS and not RTU */
|
||||
#ifdef SETUP_SLAVE_PTY
|
||||
SETUP_SLAVE_PTY;
|
||||
if (pty_flag)
|
||||
{
|
||||
SETUP_SLAVE_PTY;
|
||||
}
|
||||
#endif /* SETUP_SLAVE_PTY */
|
||||
#ifdef AIX
|
||||
/* On AIX, we've disabled SIGHUP above once we start a child on a pty.
|
||||
|
|
Loading…
Add table
Reference in a new issue