Skip to content
Snippets Groups Projects
Commit 743545b3 authored by Sebastien Ponce's avatar Sebastien Ponce Committed by Steven Murray
Browse files

First round of fixes out of coverity defects. Mostly uninstialized variables

parent 946035c2
Branches
Tags
No related merge requests found
......@@ -40,6 +40,7 @@ int Cinitdaemon(char *name,
if ( wait4child != NULL ) {
sa.sa_handler = wait4child;
sa.sa_flags = SA_RESTART;
sa.sa_restorer = NULL;
sigaction (SIGCHLD, &sa, NULL);
}
return (maxfds);
......
......@@ -304,6 +304,7 @@ Sigfunc *_netsignal(int signo,
act.sa_handler = func;
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
act.sa_restorer = NULL;
if (signo == SIGALRM) {
#ifdef SA_INTERRUPT
act.sa_flags |= SA_INTERRUPT; /* SunOS 4.x */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment