Do not need the opost flag to term_copy() now that we use pipes for

stdout/stderr when they are not a tty.
This commit is contained in:
Todd C. Miller
2010-05-03 10:41:26 -04:00
parent dd256f25ca
commit 0eda64b235
3 changed files with 4 additions and 7 deletions

View File

@@ -197,7 +197,7 @@ check_foreground(void)
{
foreground = tcgetpgrp(script_fds[SFD_USERTTY]) == ppgrp;
if (foreground && !tty_initialized) {
if (term_copy(script_fds[SFD_USERTTY], script_fds[SFD_SLAVE], ttyout)) {
if (term_copy(script_fds[SFD_USERTTY], script_fds[SFD_SLAVE])) {
tty_initialized = 1;
sync_ttysize(script_fds[SFD_USERTTY], script_fds[SFD_SLAVE]);
}
@@ -476,7 +476,7 @@ script_execve(struct command_details *details, char *argv[], char *envp[],
if (foreground) {
/* Copy terminal attrs from user tty -> pty slave. */
if (term_copy(script_fds[SFD_USERTTY], script_fds[SFD_SLAVE], ttyout)) {
if (term_copy(script_fds[SFD_USERTTY], script_fds[SFD_SLAVE])) {
tty_initialized = 1;
sync_ttysize(script_fds[SFD_USERTTY], script_fds[SFD_SLAVE]);
}