Merge pull request #153 from prymitive/cheaper_zero_fix

additional validation of the --cheaper value at startup
This commit is contained in:
unbit
2013-02-09 07:22:34 -08:00
+1
View File
@@ -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");