diff --git a/core/master.c b/core/master.c index de5c9582..a307767c 100644 --- a/core/master.c +++ b/core/master.c @@ -1271,6 +1271,12 @@ health_cycle: continue; #endif + if (uwsgi.emperor_pid >= 0) { + uwsgi_log_verbose("!!! Emperor died !!!\n"); + uwsgi_emperor_start(); + continue; + } + pid_found = 0; for (i = 0; i < uwsgi.mules_cnt; i++) { if (uwsgi.mules[i].pid == diedpid) {