* subshell.c (synchronize): Discard all remaining data from
stdin to the subshell.
Этот коммит содержится в:
родитель
105877896d
Коммит
11bd8d9c39
@ -1,5 +1,8 @@
|
|||||||
2002-08-18 Pavel Roskin <proski@gnu.org>
|
2002-08-18 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* subshell.c (synchronize): Discard all remaining data from
|
||||||
|
stdin to the subshell.
|
||||||
|
|
||||||
* subshell.c (exit_subshell) [AIX_TCSH_CODE_BELOW_IS_IT_FIXED]:
|
* subshell.c (exit_subshell) [AIX_TCSH_CODE_BELOW_IS_IT_FIXED]:
|
||||||
Remove. Nobody has fixed this code for years.
|
Remove. Nobody has fixed this code for years.
|
||||||
|
|
||||||
|
@ -1042,6 +1042,10 @@ static void synchronize (void)
|
|||||||
/* Wait until the subshell has stopped */
|
/* Wait until the subshell has stopped */
|
||||||
while (subshell_alive && !subshell_stopped)
|
while (subshell_alive && !subshell_stopped)
|
||||||
sigsuspend (&old_mask);
|
sigsuspend (&old_mask);
|
||||||
|
|
||||||
|
/* Discard all remaining data from stdin to the subshell */
|
||||||
|
tcflush (subshell_pty, TCOFLUSH);
|
||||||
|
|
||||||
subshell_stopped = FALSE;
|
subshell_stopped = FALSE;
|
||||||
kill (subshell_pid, SIGCONT);
|
kill (subshell_pid, SIGCONT);
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user