cosmopolitan/test/libc/proc
Justine Tunney 42a3bb729a
Make execve() linger when it can't spoof parent
It's now possible to use execve() when the parent process isn't built by
cosmo. In such cases, the current process will kill all threads and then
linger around, waiting for the newly created process to die, and then we
propagate its exit code to the parent. This should help bazel and others

Allocating private anonymous memory is now 5x faster on Windows. This is
thanks to VirtualAlloc() which is faster than the file mapping APIs. The
fork() function also now goes 30% faster, since we are able to avoid the
VirtualProtect() calls on mappings in most cases now.

Fixes #1253
2025-01-04 21:13:37 -08:00
..
BUILD.mk Write more runtime tests and fix bugs 2025-01-01 22:25:22 -08:00
execve_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
execve_test_prog1.c flip et / noet in modelines 2023-12-07 22:17:11 -05: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