mirror of
https://github.com/Pithikos/C-Thread-Pool
synced 2024-11-26 07:20:07 +03:00
fix: set the SA_ONSTACK flag
This commit is contained in:
parent
b2827e9960
commit
b2f44889cb
2
thpool.c
2
thpool.c
@ -341,7 +341,7 @@ static void* thread_do(struct thread* thread_p){
|
||||
/* Register signal handler */
|
||||
struct sigaction act;
|
||||
sigemptyset(&act.sa_mask);
|
||||
act.sa_flags = 0;
|
||||
act.sa_flags = SA_ONSTACK;
|
||||
act.sa_handler = thread_hold;
|
||||
if (sigaction(SIGUSR1, &act, NULL) == -1) {
|
||||
err("thread_do(): cannot handle SIGUSR1");
|
||||
|
Loading…
Reference in New Issue
Block a user