* subshell.c (sigchld_handler): Remove subshell_pty from the

channel list if the subshell has died.
This commit is contained in:
Pavel Roskin 2002-07-03 16:35:42 +00:00
parent a83d080370
commit 0c0a5ae270
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-07-03 Pavel Roskin <proski@gnu.org>
* subshell.c (sigchld_handler): Remove subshell_pty from the
channel list if the subshell has died.
2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
* mad.[ch] [__GNUC__] (mad_strconcat): Use macro varargs.

View File

@ -912,6 +912,7 @@ void sigchld_handler (int sig)
# endif
{
subshell_alive = FALSE;
delete_select_channel (subshell_pty);
if (WIFEXITED (status) && WEXITSTATUS (status) != FORK_FAILURE)
quit |= SUBSHELL_EXIT; /* Exited normally */
}