From aa6b86fbdfa5a8b6677b33ac0e33aa85a1682af0 Mon Sep 17 00:00:00 2001 From: Unbit Date: Tue, 16 Jul 2013 08:50:51 +0200 Subject: [PATCH] force the emperor to honour --safe-fd --- core/emperor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/emperor.c b/core/emperor.c index e7d67c5c..e900de68 100644 --- a/core/emperor.c +++ b/core/emperor.c @@ -1038,6 +1038,7 @@ int uwsgi_emperor_vassal_start(struct uwsgi_instance *n_ui) { // close all of the unneded fd for (i = 3; i < (int) uwsgi.max_fd; i++) { + if (uwsgi_fd_is_safe(i)) continue; if (n_ui->use_config) { if (i == n_ui->pipe_config[1]) continue;