From: Tomas Mudrunka Date: Fri, 2 Jul 2021 08:26:07 +0000 (+0200) Subject: SA_RESTART do sigaction X-Git-Url: https://git.harvie.cz/?a=commitdiff_plain;h=80c01dc929be0faeb1393872c3354c47be76df3d;p=mirrors%2FPrograms.git SA_RESTART do sigaction --- diff --git a/c/pthread_extra/pthread_pause.c b/c/pthread_extra/pthread_pause.c index 63ccc6a..103283d 100644 --- a/c/pthread_extra/pthread_pause.c +++ b/c/pthread_extra/pthread_pause.c @@ -59,7 +59,7 @@ void pthread_pause_enable() { const struct sigaction pause_sa = { .sa_sigaction = pthread_pause_handler, .sa_mask = sigset, - .sa_flags = SA_SIGINFO, + .sa_flags = SA_SIGINFO | SA_RESTART, .sa_restorer = NULL }; sigaction(PTHREAD_XSIG_STOP, &pause_sa, NULL);