comparison 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
comparison
equal deleted inserted replaced
655:76e780c74a5e 656:67fbba2c2a85
368 } 368 }
369 369
370 /* catch and reap zombie children */ 370 /* catch and reap zombie children */
371 sa_chld.sa_handler = sigchld_handler; 371 sa_chld.sa_handler = sigchld_handler;
372 sa_chld.sa_flags = SA_NOCLDSTOP; 372 sa_chld.sa_flags = SA_NOCLDSTOP;
373 sa_chld.sa_mask = 0;
373 if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) { 374 if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) {
374 dropbear_exit("signal() error"); 375 dropbear_exit("signal() error");
375 } 376 }
376 if (signal(SIGSEGV, sigsegv_handler) == SIG_ERR) { 377 if (signal(SIGSEGV, sigsegv_handler) == SIG_ERR) {
377 dropbear_exit("signal() error"); 378 dropbear_exit("signal() error");