diff svr-main.c @ 656:67fbba2c2a85

- Make sure sa_mask is set
author Matt Johnston <matt@ucc.asn.au>
date Tue, 21 Feb 2012 22:57:19 +0800
parents a98a2138364a
children d4d0279710b9
line wrap: on
line diff
--- a/svr-main.c	Tue Feb 21 22:56:45 2012 +0800
+++ b/svr-main.c	Tue Feb 21 22:57:19 2012 +0800
@@ -370,6 +370,7 @@
 	/* 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");
 	}