1
1

* subshell.c (synchronize): Discard all remaining data from

stdin to the subshell.
Этот коммит содержится в:
Pavel Roskin 2002-08-19 02:06:01 +00:00
родитель 105877896d
Коммит 11bd8d9c39
2 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -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);