diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-11-24 08:59:54 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-11-24 08:59:54 +0100 |
commit | e186fc5a31e46f2cbf5ea1a75223b4412907f3d8 (patch) | |
tree | 544af1b6c31ada598d75d8064ce5e48876ba3a5d /sysdeps/pthread/Makefile | |
parent | aac54dcd378209bbdddbcec749561b1d8f167d11 (diff) | |
download | glibc-e186fc5a31e46f2cbf5ea1a75223b4412907f3d8.tar glibc-e186fc5a31e46f2cbf5ea1a75223b4412907f3d8.tar.gz glibc-e186fc5a31e46f2cbf5ea1a75223b4412907f3d8.tar.bz2 glibc-e186fc5a31e46f2cbf5ea1a75223b4412907f3d8.zip |
nptl: Do not set signal mask on second setjmp return [BZ #28607]
__libc_signal_restore_set was in the wrong place: It also ran
when setjmp returned the second time (after pthread_exit or
pthread_cancel). This is observable with blocked pending
signals during thread exit.
Fixes commit b3cae39dcbfa2432b3f3aa28854d8ac57f0de1b8
("nptl: Start new threads with all signals blocked [BZ #25098]").
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/pthread/Makefile')
-rw-r--r-- | sysdeps/pthread/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/pthread/Makefile b/sysdeps/pthread/Makefile index df8943f486..c657101696 100644 --- a/sysdeps/pthread/Makefile +++ b/sysdeps/pthread/Makefile @@ -118,6 +118,7 @@ tests += tst-cnd-basic tst-mtx-trylock tst-cnd-broadcast \ tst-unload \ tst-unwind-thread \ tst-pt-vfork1 tst-pt-vfork2 tst-vfork1x tst-vfork2x \ + tst-pthread-exit-signal \ tst-pthread-setuid-loop \ tst-pthread_cancel-exited \ tst-pthread_cancel-select-loop \ |