Skip to content

Commit

Permalink
Merge pull request #2641 from hananto1/bugfix/need-app-flaky-exit-code
Browse files Browse the repository at this point in the history
Fix for Flaky Exit Code When Using 'need-app' and 'lazy-apps' Flags Together

Fix #2640
  • Loading branch information
xrmx authored Jun 1, 2024
2 parents 136de6a + e47b900 commit d5ca727
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 d5ca727

Please sign in to comment.