Configure PR_SET_PDEATHSIG on Linux and Job Objects on Windows to prevent orphaned subprocesses on program crash

This commit is contained in:
Andrea Mazzoleni 2026-08-01 18:26:01 +02:00
parent 8c128c1bc3
commit 58d75feea4
4 changed files with 76 additions and 7 deletions

View file

@ -217,6 +217,10 @@
#include <sys/wait.h>
#endif
#if HAVE_SYS_PRCTL_H
#include <sys/prctl.h>
#endif
#if HAVE_GETOPT_H
#include <getopt.h>
#endif
@ -309,4 +313,3 @@
#endif
#endif