From 80c01dc929be0faeb1393872c3354c47be76df3d Mon Sep 17 00:00:00 2001 From: Tomas Mudrunka Date: Fri, 2 Jul 2021 10:26:07 +0200 Subject: [PATCH] SA_RESTART do sigaction --- c/pthread_extra/pthread_pause.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2