fix: set the SA_ONSTACK flag

This commit is contained in:
Kévin Dunglas 2022-12-19 17:11:37 +01:00
parent b2827e9960
commit b2f44889cb
No known key found for this signature in database
GPG Key ID: 4D04EBEF06AAF3A6

View File

@ -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");