1
0
mirror of https://github.com/clearml/dropbear synced 2025-04-07 06:04:15 +00:00

- Make sure sa_mask is set

This commit is contained in:
Matt Johnston 2012-02-21 22:57:19 +08:00
parent aaa72ddbfc
commit a3188b44f0
2 changed files with 2 additions and 0 deletions

View File

@ -137,6 +137,7 @@ static void sesssigchild_handler(int UNUSED(dummy)) {
sa_chld.sa_handler = sesssigchild_handler;
sa_chld.sa_flags = SA_NOCLDSTOP;
sa_chld.sa_mask = 0;
sigaction(SIGCHLD, &sa_chld, NULL);
TRACE(("leave sigchld handler"))
}

View File

@ -370,6 +370,7 @@ static void commonsetup() {
/* catch and reap zombie children */
sa_chld.sa_handler = sigchld_handler;
sa_chld.sa_flags = SA_NOCLDSTOP;
sa_chld.sa_mask = 0;
if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) {
dropbear_exit("signal() error");
}