cosmopolitan/ape
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
..
public Improve open source compatibility 2022-09-08 03:19:35 -07:00
aarch64.lds Release Cosmopolitan v3.8.0 2024-08-30 20:14:07 -07:00
ape-m1.c Add helpful error messages 2024-08-19 07:28:49 -07:00
ape.h Mint APE Loader v1.10 2023-12-31 11:43:13 -08:00
ape.internal.h Get aarch64 hello world working 2023-05-10 04:20:47 -07:00
ape.lds Make execve() linger when it can't spoof parent 2025-01-04 21:13:37 -08:00
ape.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
apeinstall.sh Reapply apeinstall.sh binfmt flags (#1171) 2024-05-08 01:48:48 -04:00
apeuninstall.sh Remove feature for embedding blink in ape scripts 2024-01-26 22:30:56 -08:00
BUILD.mk Fix build issues 2024-08-15 18:37:33 -07:00
idata.internal.h flip et / noet in modelines 2023-12-07 22:17:11 -05:00
launch.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
loader-macho.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
loader.c Loaders rewrite argv[0] for old binaries (#1170) 2024-05-07 20:42:18 -04:00
loader.lds more modeline errata (#1019) 2023-12-16 23:07:10 -05:00
macros.internal.h Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
mz.ansi Initial import 2020-06-15 07:18:57 -07:00
notice.inc Initial import 2020-06-15 07:18:57 -07:00
relocations.h Optimize memory layout 2022-09-12 04:26:52 -07:00
sections.internal.h Fix thread-local storage bugs on aarch64 2024-05-08 04:20:22 -07:00
specification.md Graduate some clock_gettime() constants to #define 2024-07-22 07:14:35 -07:00
start.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
systemcall.S Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00