comparison svr-main.c @ 1006:0aa1feb8adda coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Wed, 28 Jan 2015 22:49:55 +0800
parents a48561559584
children a00303a7d247
comparison
equal deleted inserted replaced
997:e75316906852 1006:0aa1feb8adda
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 }