Initialise sa_mask

This commit is contained in:
Matt Johnston 2015-01-28 22:33:34 +08:00
parent 9bb9b4829d
commit d5c8ba1690

View File

@ -343,6 +343,7 @@ static void sigchld_handler(int UNUSED(unused)) {
sa_chld.sa_handler = sigchld_handler;
sa_chld.sa_flags = SA_NOCLDSTOP;
sigemptyset(&sa_chld.sa_mask);
if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) {
dropbear_exit("signal() error");
}