Enforce causal child acquisition boundaries

This commit is contained in:
ms2k 2026-07-14 23:50:30 +09:00
commit 6f722ce079

View file

@ -0,0 +1,9 @@
#include <signal.h>
__attribute__((constructor)) static void set_sa_nocldwait(void) {
struct sigaction action = {0};
action.sa_handler = SIG_DFL;
action.sa_flags = SA_NOCLDWAIT;
sigemptyset(&action.sa_mask);
sigaction(SIGCHLD, &action, 0);
}