fix possible fd leak via missing O_CLOEXEC in pthread_setname_np
authorÉrico Rolim <ericonr@disroot.org>
Thu, 24 Dec 2020 04:18:04 +0000 (01:18 -0300)
committerRich Felker <dalias@aerifal.cx>
Sat, 30 Jan 2021 22:29:55 +0000 (17:29 -0500)
commit074932c84d34273821e3bfc2511e60a5ce78b8d8
tree12ae0b99750b11438247dc9bf493f37fbeca362d
parent9b77aaca86b53c367f23505c24dd3c02e240efad
fix possible fd leak via missing O_CLOEXEC in pthread_setname_np

the omission of the flag here seems to have been an oversight when the
function was added in 8fb28b0b3e7a5e958fb844722a4b2ef9bc244af1
src/thread/pthread_setname_np.c