changeset 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 76e780c74a5e
children 16af1decaf4c
files svr-chansession.c svr-main.c
diffstat 2 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/svr-chansession.c	Tue Feb 21 22:56:45 2012 +0800
+++ b/svr-chansession.c	Tue Feb 21 22:57:19 2012 +0800
@@ -137,6 +137,7 @@
 
 	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"))
 }
--- 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");
 	}