applied atexit patch from 1.2.2

This commit is contained in:
roberto@precise64
2012-05-11 21:15:58 +02:00
parent 9fe275141f
commit 99d9e8cd67
3 changed files with 5 additions and 1 deletions
+3
View File
@@ -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);
+1 -1
View File
@@ -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;
+1
View File
@@ -2834,6 +2834,7 @@ uint64_t uwsgi_micros(void);
int uwsgi_is_file(char *);
void uwsgi_receive_signal(int, char *, int);
void uwsgi_exec_atexit(void);
#ifdef UWSGI_AS_SHARED_LIBRARY
int uwsgi_init(int, char **, char **);