mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-03 23:48:22 +00:00
implemented total harakiri
This commit is contained in:
@@ -160,6 +160,12 @@ int uwsgi_master_check_workers_deadline() {
|
||||
int i,j;
|
||||
int ret = 0;
|
||||
for (i = 1; i <= uwsgi.numproc; i++) {
|
||||
if (uwsgi.workers[i].harakiri_total > 0) {
|
||||
if (uwsgi.workers[i].harakiri_total < (time_t) uwsgi.current_time) {
|
||||
trigger_harakiri(i);
|
||||
ret = 1;
|
||||
}
|
||||
}
|
||||
for(j=0;j<uwsgi.cores;j++) {
|
||||
/* first check for harakiri */
|
||||
if (uwsgi.workers[i].cores[j].harakiri > 0) {
|
||||
|
||||
Reference in New Issue
Block a user