fixed emperor reload in lazy mode

This commit is contained in:
roberto@oneiric64
2012-02-01 17:53:50 +01:00
parent 28106e624e
commit cf247c828a
2 changed files with 7 additions and 0 deletions
+2
View File
@@ -984,6 +984,8 @@ int master_loop(char **argv, char **environ) {
}
// reload me
else if (byte == 1) {
// un-lazy the stack to trigger a real reload
uwsgi.lazy = 0;
grace_them_all(0);
}
}
+5
View File
@@ -3155,6 +3155,11 @@ void uwsgi_opt_true(char *opt, char *value, void *key) {
int *ptr = (int *) key;
*ptr = 1;
if (value) {
if (!strcasecmp("false", value) || !strcasecmp("off", value) || !strcasecmp("no", value) || !strcmp("0", value)) {
*ptr = 0;
}
}
}
void uwsgi_opt_set_int(char *opt, char *value, void *key) {