X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fsignal%2Fsiglongjmp.c;h=a7bcca2439e67575c1317bb76e4862d183b58db8;hp=9b4a5398cc72add3efbb36b60f7590aa22ce51b3;hb=9448b0513e2eec020fbca9c10412b83df5027a16;hpb=d6c0efe106b1016108207fb6872820c06dcef4f8 diff --git a/src/signal/siglongjmp.c b/src/signal/siglongjmp.c index 9b4a5398..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, 8); + if (buf->__fl) __restore_sigs(buf->__ss); longjmp(buf->__jb, ret); }