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

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

The sched_getparam call is also replaced with a INTERNAL_SYSCALL_CALL
to avoid clobbering errno.

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