From 8cee06768b274f7a98482cadfd2d49f24c913d2e Mon Sep 17 00:00:00 2001 From: Sargun Dhillon Date: Mon, 30 Apr 2018 16:42:22 -0700 Subject: [PATCH] Define CLONE_NEWCGROUP for older platforms --- src/tini.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tini.c b/src/tini.c index 1434fb9..a8d79fa 100644 --- a/src/tini.c +++ b/src/tini.c @@ -26,6 +26,10 @@ #include "tiniConfig.h" #include "tiniLicense.h" +#ifndef CLONE_NEWCGROUP +#define CLONE_NEWCGROUP 0x02000000 /* New cgroup namespace */ +#endif + #define S_IWUGO (S_IWUSR|S_IWGRP|S_IWOTH) #define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH) #define REDIRECT_STDERR "TITUS_REDIRECT_STDERR"