summaryrefslogtreecommitdiffstats
path: root/mod_wsgi-3.4-procexit.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-11-17 07:18:22 +0100
committerRemi Collet <fedora@famillecollet.com>2012-11-17 07:18:22 +0100
commit158ceac655218cac0bb8c87c328453862f315254 (patch)
tree1b56c0e879e2a7cddbdfd2c549962101835e627f /mod_wsgi-3.4-procexit.patch
parent63b4c5113a0e771efc03a9edd08211723d5c6c59 (diff)
mod_wsgi: backport
Diffstat (limited to 'mod_wsgi-3.4-procexit.patch')
-rw-r--r--mod_wsgi-3.4-procexit.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/mod_wsgi-3.4-procexit.patch b/mod_wsgi-3.4-procexit.patch
new file mode 100644
index 0000000..fc23c96
--- /dev/null
+++ b/mod_wsgi-3.4-procexit.patch
@@ -0,0 +1,23 @@
+--- mod_wsgi-3.3/mod_wsgi.c.procexit
++++ mod_wsgi-3.3/mod_wsgi.c
+@@ -9845,6 +9845,20 @@ static void wsgi_manage_process(int reas
+ wsgi_server, "mod_wsgi (pid=%d): "
+ "Process '%s' has died, restarting.",
+ daemon->process.pid, daemon->group->name);
++ if (WIFEXITED(status)) {
++ ap_log_error(APLOG_MARK, WSGI_LOG_INFO(0),
++ wsgi_server, "mod_wsgi (pid=%d): "
++ "Process '%s' terminated normally, exit code %d",
++ daemon->process.pid, daemon->group->name,
++ WEXITSTATUS(status));
++ }
++ else if (WIFSIGNALED(status)) {
++ ap_log_error(APLOG_MARK, WSGI_LOG_INFO(0),
++ wsgi_server, "mod_wsgi (pid=%d): "
++ "Process '%s' terminated by signal %d",
++ daemon->process.pid, daemon->group->name,
++ WTERMSIG(status));
++ }
+
+ wsgi_start_process(wsgi_parent_pool, daemon);
+ }