mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-08 06:31:58 +00:00
fixed emperor reload in lazy mode
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user