summaryrefslogtreecommitdiff
path: root/src/internal/fork_impl.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2023-06-01 16:09:32 -0400
committerRich Felker <dalias@aerifal.cx>2023-06-01 16:15:37 -0400
commit0c277ff156749628c678257f878d3a6edb5868de (patch)
tree4334f6b20d18c27ebb81e55fba47b14dcc5e6963 /src/internal/fork_impl.h
parent4653b98711f280270fa049654460610f587ba7b4 (diff)
downloadmusl-0c277ff156749628c678257f878d3a6edb5868de.tar.gz
fix broken thread list unlocking after fork
apparently Linux clears the registered exit futex address on fork. this means that, if after forking the child process becomes multithreaded and the original thread exits, the thread list will never be unlocked, and future attempts to use the thread list will deadlock. re-register the exit futex address after _Fork in the child to ensure that it's preserved.
Diffstat (limited to 'src/internal/fork_impl.h')
0 files changed, 0 insertions, 0 deletions