SA_RESTART do sigaction
authorTomas Mudrunka <tomas@mudrunka.cz>
Fri, 2 Jul 2021 08:26:07 +0000 (10:26 +0200)
committerTomas Mudrunka <tomas@mudrunka.cz>
Fri, 2 Jul 2021 08:26:07 +0000 (10:26 +0200)
c/pthread_extra/pthread_pause.c

index 63ccc6a05cb299bae0c8a099fc520be1f55bb2c3..103283d755f13966dfac0f4c4298cd5460a5853b 100644 (file)
@@ -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);
This page took 0.24453 seconds and 4 git commands to generate.