]> sourceware.org Git - glibc.git/commit
Hurd: make sigstates hold a reference on thread ports
authorRichard Braun <rbraun@sceen.net>
Mon, 21 Dec 2020 01:10:16 +0000 (02:10 +0100)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 21 Dec 2020 01:10:16 +0000 (02:10 +0100)
commit5c06743c8a6f2184fbd3792b13dffa30f473b7b7
tree07a16aeb17241b84b149ea13a19861f214b945b1
parent53432762ac2ff24794089e2c767b976e54c2dc0a
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.
hurd/hurd/signal.h
hurd/hurdsig.c
This page took 0.04239 seconds and 5 git commands to generate.