cosmopolitan/test
Justine Tunney 26c051c297
Spoof PID across execve() on Windows
It's now possible with cosmo and redbean, to deliver a signal to a child
process after it has called execve(). However the executed program needs
to be compiled using cosmocc. The cosmo runtime WinMain() implementation
now intercepts a _COSMO_PID environment variable that's set by execve().
It ensures the child process will use the same C:\ProgramData\cosmo\sigs
file, which is where kill() will place the delivered signal. We are able
to do this on Windows even better than NetBSD, which has a bug with this

Fixes #1334
2024-12-14 13:13:08 -08:00
..
ctl Strongly link glob() into system() and popen() 2024-11-15 20:37:34 -08:00
dsp Upgrade pl_mpeg 2024-09-06 19:10:34 -07:00
libc Test rwlock more 2024-12-14 09:40:13 -08:00
libcxx Release Cosmopolitan v3.8.0 2024-08-30 20:14:07 -07:00
math Share file offset across processes 2024-08-03 01:39:11 -07:00
net Make redbean Fetch() support longer responses 2024-10-12 15:59:46 -07:00
posix Spoof PID across execve() on Windows 2024-12-14 13:13:08 -08:00
tool Improve Windows sleep accuracy from 15ms to 15µs 2024-12-06 23:03:57 -08:00
BUILD.mk Introduce Cosmopolitan Templates Library (CTL) 2024-06-03 09:21:59 -07:00