mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +03:00
* subshell.c (sigchld_handler): Remove subshell_pty from the
channel list if the subshell has died.
This commit is contained in:
parent
a83d080370
commit
0c0a5ae270
@ -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>
|
2002-07-03 Andrew V. Samoilov <kai@cmail.ru>
|
||||||
|
|
||||||
* mad.[ch] [__GNUC__] (mad_strconcat): Use macro varargs.
|
* mad.[ch] [__GNUC__] (mad_strconcat): Use macro varargs.
|
||||||
|
@ -912,6 +912,7 @@ void sigchld_handler (int sig)
|
|||||||
# endif
|
# endif
|
||||||
{
|
{
|
||||||
subshell_alive = FALSE;
|
subshell_alive = FALSE;
|
||||||
|
delete_select_channel (subshell_pty);
|
||||||
if (WIFEXITED (status) && WEXITSTATUS (status) != FORK_FAILURE)
|
if (WIFEXITED (status) && WEXITSTATUS (status) != FORK_FAILURE)
|
||||||
quit |= SUBSHELL_EXIT; /* Exited normally */
|
quit |= SUBSHELL_EXIT; /* Exited normally */
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user