entrance_wait: do not react on closed children
This fixes T2627
This commit is contained in:
parent
8d688c93a1
commit
b67f79219d
|
@ -18,7 +18,6 @@ static void
|
||||||
_entrance_wait_action(int sig, siginfo_t * si __UNUSED__, void *data __UNUSED__)
|
_entrance_wait_action(int sig, siginfo_t * si __UNUSED__, void *data __UNUSED__)
|
||||||
{
|
{
|
||||||
kill_wait();
|
kill_wait();
|
||||||
if (sig != SIGCHLD)
|
|
||||||
setenv("ENTRANCE_QUIT", "1", 1);
|
setenv("ENTRANCE_QUIT", "1", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +47,6 @@ main (int argc __UNUSED__, char **argv __UNUSED__)
|
||||||
action.sa_sigaction = _entrance_wait_action;
|
action.sa_sigaction = _entrance_wait_action;
|
||||||
action.sa_flags = SA_RESTART | SA_SIGINFO;
|
action.sa_flags = SA_RESTART | SA_SIGINFO;
|
||||||
sigemptyset(&action.sa_mask);
|
sigemptyset(&action.sa_mask);
|
||||||
sigaction(SIGCHLD, &action, NULL);
|
|
||||||
sigaction(SIGQUIT, &action, NULL);
|
sigaction(SIGQUIT, &action, NULL);
|
||||||
sigaction(SIGTERM, &action, NULL);
|
sigaction(SIGTERM, &action, NULL);
|
||||||
sigaction(SIGKILL, &action, NULL);
|
sigaction(SIGKILL, &action, NULL);
|
||||||
|
|
Loading…
Reference in New Issue