* src/subshell.c (synchronize): Do not discard user input if the panels are

off.
This commit is contained in:
Pavel Tsekov 2006-02-24 19:43:48 +00:00
parent 28157ca499
commit 389df305eb
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2006-02-24 Pavel Tsekov <ptsekov@gmx.net>
* subshell.c (synchronize): Do not discard user input if the panels
are off.
2006-02-23 Pavel Tsekov <ptsekov@gmx.net>
* setup.c [USE_NETCODE]: Include fish.h .

View File

@ -1055,8 +1055,10 @@ static void synchronize (void)
while (subshell_alive && !subshell_stopped)
sigsuspend (&old_mask);
/* Discard all remaining data from stdin to the subshell */
tcflush (subshell_pty, TCOFLUSH);
if (subshell_state != ACTIVE) {
/* Discard all remaining data from stdin to the subshell */
tcflush (subshell_pty, TCOFLUSH);
}
subshell_stopped = FALSE;
kill (subshell_pid, SIGCONT);