Zero sigaction value before using it

This commit is contained in:
Frank Denis 2015-10-17 17:19:25 +02:00
parent e58f6b0abb
commit ed4127bf13

View File

@ -181,6 +181,7 @@ void server(int sock)
{ {
struct sigaction sa; struct sigaction sa;
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(SIGINT,&sa,NULL); sigaction(SIGINT,&sa,NULL);