Another sigaction value worth initializing
This commit is contained in:
parent
ed4127bf13
commit
907b13dbdc
1
server.c
1
server.c
@ -85,6 +85,7 @@ static void connection(int sock)
|
|||||||
io_init();
|
io_init();
|
||||||
|
|
||||||
if( (host=auth_server(sock)) ){
|
if( (host=auth_server(sock)) ){
|
||||||
|
memset(&sa, 0, sizeof sa);
|
||||||
sa.sa_handler=SIG_IGN;
|
sa.sa_handler=SIG_IGN;
|
||||||
sa.sa_flags=SA_NOCLDWAIT;;
|
sa.sa_flags=SA_NOCLDWAIT;;
|
||||||
sigaction(SIGHUP,&sa,NULL);
|
sigaction(SIGHUP,&sa,NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user