From e69dd5cb6abc010e468a738eb600127a42fd8803 Mon Sep 17 00:00:00 2001 From: "roberto@oneiric64" Date: Mon, 12 Dec 2011 12:54:25 +0100 Subject: [PATCH] remove unshare call() on older kernels --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index f6f7b412..87220b5c 100644 --- a/utils.c +++ b/utils.c @@ -518,7 +518,7 @@ void uwsgi_as_root() { } #endif -#ifdef __linux__ +#if defined(__linux__) && !defined(OBSOLETE_LINUX_KERNEL) if (uwsgi.unshare && !uwsgi.reloads) { if (unshare(uwsgi.unshare)) {