diff options
Diffstat (limited to 'src/sysdeps/tryprsetchildsubreaper.c')
| -rw-r--r-- | src/sysdeps/tryprsetchildsubreaper.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sysdeps/tryprsetchildsubreaper.c b/src/sysdeps/tryprsetchildsubreaper.c new file mode 100644 index 0000000..6a65691 --- /dev/null +++ b/src/sysdeps/tryprsetchildsubreaper.c @@ -0,0 +1,12 @@ +/* ISC license. */ + +#undef _POSIX_C_SOURCE +#undef _XOPEN_SOURCE + +#include <sys/prctl.h> + +int main (void) +{ + prctl(PR_SET_CHILD_SUBREAPER, 1) ; + return 0 ; +} |
