Skip to content
Snippets Groups Projects
Commit a3188b44 authored by Matt Johnston's avatar Matt Johnston
Browse files

- Make sure sa_mask is set

parent aaa72ddb
No related merge requests found
...@@ -137,6 +137,7 @@ static void sesssigchild_handler(int UNUSED(dummy)) { ...@@ -137,6 +137,7 @@ static void sesssigchild_handler(int UNUSED(dummy)) {
sa_chld.sa_handler = sesssigchild_handler; sa_chld.sa_handler = sesssigchild_handler;
sa_chld.sa_flags = SA_NOCLDSTOP; sa_chld.sa_flags = SA_NOCLDSTOP;
sa_chld.sa_mask = 0;
sigaction(SIGCHLD, &sa_chld, NULL); sigaction(SIGCHLD, &sa_chld, NULL);
TRACE(("leave sigchld handler")) TRACE(("leave sigchld handler"))
} }
......
...@@ -370,6 +370,7 @@ static void commonsetup() { ...@@ -370,6 +370,7 @@ static void commonsetup() {
/* catch and reap zombie children */ /* catch and reap zombie children */
sa_chld.sa_handler = sigchld_handler; sa_chld.sa_handler = sigchld_handler;
sa_chld.sa_flags = SA_NOCLDSTOP; sa_chld.sa_flags = SA_NOCLDSTOP;
sa_chld.sa_mask = 0;
if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) { if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) {
dropbear_exit("signal() error"); dropbear_exit("signal() error");
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment