From 0586a2ba47cd323329e2e2a13f87eea865739f7a Mon Sep 17 00:00:00 2001 From: Roberto De Ioris Date: Fri, 1 Nov 2013 09:54:01 +0100 Subject: [PATCH] fixed #436 --- core/emperor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/emperor.c b/core/emperor.c index 3745e6ff..2a64a00d 100644 --- a/core/emperor.c +++ b/core/emperor.c @@ -974,6 +974,7 @@ static void uwsgi_emperor_spawn_vassal(struct uwsgi_instance *n_ui) { #endif #ifdef UWSGI_CAP +#if defined(CAP_LAST_CAP) && defined(PR_CAPBSET_READ) && defined(PR_CAPBSET_DROP) if (uwsgi.emperor_cap && uwsgi.emperor_cap_count > 0) { int i; for(i=0;i<=CAP_LAST_CAP;i++) { @@ -1010,6 +1011,7 @@ static void uwsgi_emperor_spawn_vassal(struct uwsgi_instance *n_ui) { uwsgi_log("capabilities applied for vassal %s (pid: %d)\n", n_ui->name, (int) getpid()); } #endif +#endif #endif if (uwsgi.emperor_tyrant) {