]> git.ipfire.org Git - thirdparty/glibc.git/commit
nptl: Use exit_lock when accessing TID on pthread_setname_np
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 23 Aug 2021 17:46:27 +0000 (14:46 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 9 Jul 2025 22:57:21 +0000 (19:57 -0300)
commit2518bb05f6a930d59ab574a443671323b900e79b
treeec4bb659af2c0b16c2ad2064e7db108334111eb7
parentfe2c818f75d8f9b7b4bebb411f2970fda4f2fcb6
nptl: Use exit_lock when accessing TID on pthread_setname_np

Also return EINVAL if the thread is already terminated at the time
of the call.

Checked on x86_64-linux-gnu.
nptl/pthread_setname.c
sysdeps/pthread/tst-pthread-exited.c