Package: release.debian.org Severity: normal User: release.debian....@packages.debian.org Usertags: unblock
Please unblock package mongrel2 The package contains a one-line fix for a bug which causes mongrel2 to stop working after it received two HUP signals. In earlier versions of mongrel2, reload_task() called reload_server(), which sets RELOAD to 0. When the call to reload_server() was removed, setting RELOAD was forgotten. This is a trivial (identical) backport of the upstream fix available at https://github.com/mongrel2/mongrel2/commit/1b788752f287aedd2a837e7304284f128957dd16 diff -Nru mongrel2-1.11.0/debian/changelog mongrel2-1.11.0/debian/changelog --- mongrel2-1.11.0/debian/changelog 2016-12-21 17:54:59.000000000 +0100 +++ mongrel2-1.11.0/debian/changelog 2017-02-22 12:14:48.000000000 +0100 @@ -1,3 +1,12 @@ +mongrel2 (1.11.0-6) unstable; urgency=medium + + * Cherry-pick upstream patch. + One can send HUP signals to mongrel2 to make it reopen the log + files. Due to a bug, after receiving two such signals, mongrel2 + stopped working. This bug is fixed by the patch. + + -- Jan Niehusmann <j...@debian.org> Wed, 22 Feb 2017 12:14:48 +0100 + mongrel2 (1.11.0-5) unstable; urgency=medium * Sort output of $(wildcard ...) in subdirectory Makefiles diff -Nru mongrel2-1.11.0/debian/patches/debian-changes mongrel2-1.11.0/debian/patches/debian-changes --- mongrel2-1.11.0/debian/patches/debian-changes 2016-12-21 17:54:59.000000000 +0100 +++ mongrel2-1.11.0/debian/patches/debian-changes 2017-02-22 12:14:48.000000000 +0100 @@ -227,6 +227,16 @@ #else #define IOBuf_sendfile sendfile #endif +--- mongrel2-1.11.0.orig/src/mongrel2.c ++++ mongrel2-1.11.0/src/mongrel2.c +@@ -382,6 +382,7 @@ void reload_task(void *data) + if(rotate_logs()) { + log_err("Error rotating logs!"); + } ++ RELOAD = 0; + } else { + log_info("Shutdown requested, goodbye."); + break; --- mongrel2-1.11.0.orig/src/task/context.c +++ mongrel2-1.11.0/src/task/context.c @@ -94,4 +94,3 @@ int swapcontext(ucontext_t *oucp, const unblock mongrel2/1.11.0-6