From 8d65371bf635ed7edf3e96cc2812c28393bdbe5c Mon Sep 17 00:00:00 2001 From: Unbit Date: Thu, 24 Oct 2013 21:34:07 +0200 Subject: [PATCH] completely skip cgroups initialization when non-root --- core/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/utils.c b/core/utils.c index de178b5c..cd53d3ab 100644 --- a/core/utils.c +++ b/core/utils.c @@ -206,6 +206,8 @@ void uwsgi_set_cgroup() { if (!uwsgi.cgroup) return; + if (getuid()) return; + usl = uwsgi.cgroup; while (usl) {