Fixes valgrind errors

Syscall param rt_sigaction(act->sa_handler) points to uninitialised byte(s)
Syscall param rt_sigaction(act->sa_flags) points to uninitialised byte(s)
This commit is contained in:
everclear 2015-06-04 18:33:50 +01:00
parent 9151cd1b7d
commit c1b7898782
1 changed files with 2 additions and 0 deletions

View File

@ -336,6 +336,8 @@ static void* thread_do(struct thread* thread_p){
/* Register signal handler */
struct sigaction act;
sigemptyset(&act.sa_mask);
act.sa_flags = 0;
act.sa_handler = thread_hold;
if (sigaction(SIGUSR1, &act, NULL) == -1) {
fprintf(stderr, "thread_do(): cannot handle SIGUSR1");