when the emperor has a master, allows it to respawn the dead emperor

This commit is contained in:
Unbit
2013-01-28 16:35:12 +01:00
parent ec3a95dafb
commit 65c513bec2
+6
View File
@@ -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) {