Skip to content

Commit

Permalink
core: remove race-condition over termination of uWSGI process when us…
Browse files Browse the repository at this point in the history
…ing need-app and lazy-apps

Fix unbit#2640
  • Loading branch information
Hanan .T authored and xrmx committed Jun 1, 2024
1 parent e606173 commit a263090
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions core/uwsgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -3835,13 +3835,6 @@ void uwsgi_init_all_apps() {
if (uwsgi.need_app) {
if (!uwsgi.lazy)
uwsgi_log("*** no app loaded. GAME OVER ***\n");
if (uwsgi.lazy_apps) {
if (uwsgi.master_process) {
if (kill(uwsgi.workers[0].pid, SIGINT)) {
uwsgi_error("kill()");
}
}
}
exit(UWSGI_FAILED_APP_CODE);
}
else {
Expand Down

0 comments on commit a263090

Please sign in to comment.