diff options
author | Rich Felker <dalias@aerifal.cx> | 2023-06-01 16:09:32 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2023-06-01 16:15:37 -0400 |
commit | 0c277ff156749628c678257f878d3a6edb5868de (patch) | |
tree | 4334f6b20d18c27ebb81e55fba47b14dcc5e6963 /src/process/posix_spawnp.c | |
parent | 4653b98711f280270fa049654460610f587ba7b4 (diff) | |
download | musl-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/process/posix_spawnp.c')
0 files changed, 0 insertions, 0 deletions