additional validation of the --cheaper value at startup

This commit is contained in:
Łukasz Mierzwa
2013-02-09 14:15:35 +01:00
parent 65c047dca1
commit c32da58a7c
+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");