comparison svr-main.c @ 1001:a48561559584

Initialise sa_mask
author Matt Johnston <matt@ucc.asn.au>
date Wed, 28 Jan 2015 22:33:34 +0800
parents 0bb16232e7c4
children a00303a7d247
comparison
equal deleted inserted replaced
1000:c0b1b7eb5c84 1001:a48561559584
341 341
342 while(waitpid(-1, NULL, WNOHANG) > 0); 342 while(waitpid(-1, NULL, WNOHANG) > 0);
343 343
344 sa_chld.sa_handler = sigchld_handler; 344 sa_chld.sa_handler = sigchld_handler;
345 sa_chld.sa_flags = SA_NOCLDSTOP; 345 sa_chld.sa_flags = SA_NOCLDSTOP;
346 sigemptyset(&sa_chld.sa_mask);
346 if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) { 347 if (sigaction(SIGCHLD, &sa_chld, NULL) < 0) {
347 dropbear_exit("signal() error"); 348 dropbear_exit("signal() error");
348 } 349 }
349 errno = saved_errno; 350 errno = saved_errno;
350 } 351 }