diff --git a/tests/memleaks.sh b/tests/memleaks.sh index 2faeb43..b85dac3 100755 --- a/tests/memleaks.sh +++ b/tests/memleaks.sh @@ -10,7 +10,6 @@ # ---------------------------- Tests ----------------------------------- - function test_thread_free { #threads echo "Testing creation and destruction of threads(=$1)" compile src/no_work.c diff --git a/thpool.c b/thpool.c index 38c4d38..3d682cd 100644 --- a/thpool.c +++ b/thpool.c @@ -308,6 +308,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");