From c32da58a7ca35a80b27beab53c2ce66be3a05993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 9 Feb 2013 14:10:09 +0100 Subject: [PATCH] additional validation of the --cheaper value at startup --- core/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/init.c b/core/init.c index 1099b95e..ac017896 100644 --- a/core/init.c +++ b/core/init.c @@ -398,6 +398,7 @@ void sanitize_args() { uwsgi.ignore_write_errors = 1; } + if (uwsgi.cheaper_count == 0) uwsgi.cheaper = 0; if (uwsgi.cheaper_count > 0 && uwsgi.cheaper_count >= uwsgi.numproc) { uwsgi_log("invalid cheaper value: must be lower than processes\n");