X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fsignal%2Fsiglongjmp.c;h=a7bcca2439e67575c1317bb76e4862d183b58db8;hb=6d861ac87491a207e4599c44b61d142f0a601c2d;hp=e9a6131417de5624662c6d899f74d1d0de5c527b;hpb=2d93d6446191def352b8913e859d6104f1398c72;p=musl diff --git a/src/signal/siglongjmp.c b/src/signal/siglongjmp.c index e9a61314..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" -void siglongjmp(sigjmp_buf buf, int ret) +_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); }