cosmopolitan/test/libc/proc
Justine Tunney 29eb7e67bb
Fix fork() regression on Windows
Recent optimizations to fork() introduced a regression, that could cause
the subprocess to fail unexpectedly, when TlsAlloc() returns a different
index. This is because we were burning the indexes into the displacement
of x86 opcodes. So when fork() happened and the executable memory copied
it would use the old index. Right now the way this is being solved is to
not copy the executable on fork() and then re-apply code changes. If you
need to be able to preserve self-modified code on fork, reach out and we
can implement a better solution for you. This gets us unblocked quickly.
2025-01-05 09:25:23 -08:00
..
BUILD.mk Fix fork() regression on Windows 2025-01-05 09:25:23 -08:00
execve_test.c Fix fork() regression on Windows 2025-01-05 09:25:23 -08:00
execve_test_prog1.c Fix fork() regression on Windows 2025-01-05 09:25:23 -08:00
execve_test_prog2.c Fix fork() regression on Windows 2025-01-05 09:25:23 -08:00
fexecve_test.c Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
fork_test.c Make execve() linger when it can't spoof parent 2025-01-04 21:13:37 -08:00
getpriority_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
handkill_test.c Introduce interprocess signaling on Windows 2024-09-19 03:02:13 -07:00
life-pe Stop using .com extension in monorepo 2024-03-03 03:12:19 -08:00
life.c Write more runtime tests and fix bugs 2025-01-01 22:25:22 -08:00
posix_spawn_test.c Add missing lock to fork() on Windows 2025-01-03 19:01:58 -08:00
sched_getaffinity_test.c Test restricting tests to single cpu 2025-01-03 19:51:09 -08:00