X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fsignal%2Fsiglongjmp.c;h=a7bcca2439e67575c1317bb76e4862d183b58db8;hb=a6367a17d5f77848e8313b1e5e42698aec92908d;hp=d0e4f67d3bccf9c2f201ca30e1cf9f23a839a616;hpb=0c05bd3a9c165cf2f0b9d6fa23a1f96532ddcdb3;p=musl diff --git a/src/signal/siglongjmp.c b/src/signal/siglongjmp.c index d0e4f67d..a7bcca24 100644 --- a/src/signal/siglongjmp.c +++ b/src/signal/siglongjmp.c @@ -2,10 +2,10 @@ #include #include #include "syscall.h" +#include "pthread_impl.h" _Noreturn void siglongjmp(sigjmp_buf buf, int ret) { - if (buf->__fl) __syscall(SYS_rt_sigprocmask, SIG_SETMASK, - buf->__ss, 0, __SYSCALL_SSLEN); + if (buf->__fl) __restore_sigs(buf->__ss); longjmp(buf->__jb, ret); }