Skip to content

Commit

Permalink
Remove old code that causes race-condition over termination of uWSGI …
Browse files Browse the repository at this point in the history
…process when using need-app and lazy-apps flag.
  • Loading branch information
Hanan .T committed May 11, 2024
1 parent 353b7dd commit e47b900
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 @@ -3937,13 +3937,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 e47b900

Please sign in to comment.