mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-07 22:21:47 +00:00
applied atexit patch from 1.2.2
This commit is contained in:
@@ -238,6 +238,9 @@ void uwsgi_reload(char **argv) {
|
||||
waitpid(WAIT_ANY, &waitpid_status, WNOHANG);
|
||||
}
|
||||
|
||||
// call atexit user exec
|
||||
uwsgi_exec_atexit();
|
||||
|
||||
if (uwsgi.exit_on_reload) {
|
||||
uwsgi_log("uWSGI: GAME OVER (insert coin)\n");
|
||||
exit(0);
|
||||
|
||||
@@ -963,7 +963,7 @@ struct uwsgi_plugin unconfigured_plugin = {
|
||||
.after_request = unconfigured_after_hook,
|
||||
};
|
||||
|
||||
static void uwsgi_exec_atexit(void) {
|
||||
void uwsgi_exec_atexit(void) {
|
||||
if (getpid() == masterpid) {
|
||||
// now run exit scripts needed by the user
|
||||
struct uwsgi_string_list *usl = uwsgi.exec_as_user_atexit;
|
||||
|
||||
Reference in New Issue
Block a user