summaryrefslogtreecommitdiff
path: root/src/thread
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-03-09 20:07:24 -0500
committerRich Felker <dalias@aerifal.cx>2011-03-09 20:07:24 -0500
commit0bed7e0acfd34e3fb63ca0e4d99b7592571355a9 (patch)
tree3fe63a6e5ab2227639ed4154a8449c21819afeac /src/thread
parent370f78f2c80c64b7b0780a01e672494a26b5678e (diff)
downloadmusl-0bed7e0acfd34e3fb63ca0e4d99b7592571355a9.tar.gz
musl-0bed7e0acfd34e3fb63ca0e4d99b7592571355a9.tar.bz2
musl-0bed7e0acfd34e3fb63ca0e4d99b7592571355a9.tar.xz
musl-0bed7e0acfd34e3fb63ca0e4d99b7592571355a9.zip
fix race condition in raise - just mask signals
a signal handler could fork after the pid/tid were read, causing the wrong process to be signalled. i'm not sure if this is supposed to have UB or not, but raise is async-signal-safe, so it probably is allowed. the current solution is slightly expensive so this implementation is likely to be changed in the future.
Diffstat (limited to 'src/thread')
0 files changed, 0 insertions, 0 deletions