diff --git a/thpool.c b/thpool.c index 004b4bc..8bc782a 100644 --- a/thpool.c +++ b/thpool.c @@ -349,7 +349,7 @@ static void* thread_do(struct thread* thread_p){ /* Register signal handler */ struct sigaction act; sigemptyset(&act.sa_mask); - act.sa_flags = SA_ONSTACK; + act.sa_flags = 0; act.sa_handler = thread_hold; if (sigaction(SIGUSR1, &act, NULL) == -1) { err("thread_do(): cannot handle SIGUSR1");