about summary refs log tree commit diff
path: root/nptl/pthread-pi-defines.sym
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2020-12-21 02:10:16 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-21 02:10:16 +0100
commit5c06743c8a6f2184fbd3792b13dffa30f473b7b7 (patch)
tree07a16aeb17241b84b149ea13a19861f214b945b1 /nptl/pthread-pi-defines.sym
parent53432762ac2ff24794089e2c767b976e54c2dc0a (diff)
downloadglibc-5c06743c8a6f2184fbd3792b13dffa30f473b7b7.tar.gz
glibc-5c06743c8a6f2184fbd3792b13dffa30f473b7b7.tar.xz
glibc-5c06743c8a6f2184fbd3792b13dffa30f473b7b7.zip
Hurd: make sigstates hold a reference on thread ports
This change is required in order to correctly release per-thread
resources. Directly reusing the threading library reference isn't
possible since the sigstate is also used early in the main thread,
before threading is initialized.

* hurd/hurd/signal.h (_hurd_self_sigstate): Drop thread reference after
calling _hurd_thread_sigstate.
(_hurd_critical_section_lock): Likewise.
* hurd/hurdsig.c (_hurd_thread_sigstate): Add a reference on the thread.
(_hurd_sigstate_delete): Drop thread reference.
Diffstat (limited to 'nptl/pthread-pi-defines.sym')
0 files changed, 0 insertions, 0 deletions