summaryrefslogtreecommitdiffhomepage
path: root/svr-main.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2011-12-04 05:41:46 +0800
committerMatt Johnston <matt@ucc.asn.au>2011-12-04 05:41:46 +0800
commita15fc009daf64d5563f6669d72bc7946da12a03b (patch)
tree847cb16220a193fef5cf67451074aee38b2bb2f0 /svr-main.c
parent6c4390c8486cf6927274133a771d6d3de75efd50 (diff)
- Initialise sa_mask properly
Diffstat (limited to 'svr-main.c')
-rw-r--r--svr-main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/svr-main.c b/svr-main.c
index ff3691f..b7258e5 100644
--- a/svr-main.c
+++ b/svr-main.c
@@ -370,7 +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;
+ sigemptyset(&sa_chld.sa_mask);
if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) {
dropbear_exit("signal() error");
}