aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2013-10-29 01:21:35 +0800
committerdemon <demon@FreeBSD.org>2013-10-29 01:21:35 +0800
commit2dc0ba6881d63781cb2a1321ba4cf56e33d052e0 (patch)
tree987d5308851a239abd2d946111d70d6cb17eb272
parent47421cacce81b97a9c4c7e1bdb2a0e18b317866a (diff)
downloadfreebsd-ports-graphics-2dc0ba6881d63781cb2a1321ba4cf56e33d052e0.tar.gz
freebsd-ports-graphics-2dc0ba6881d63781cb2a1321ba4cf56e33d052e0.tar.zst
freebsd-ports-graphics-2dc0ba6881d63781cb2a1321ba4cf56e33d052e0.zip
Add a patch to fix endless loop during reload under certain conditions.
Obtained from: Project git repository
-rw-r--r--www/uwsgi/files/patch-core-stats.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/www/uwsgi/files/patch-core-stats.c b/www/uwsgi/files/patch-core-stats.c
new file mode 100644
index 00000000000..e54c44521fa
--- /dev/null
+++ b/www/uwsgi/files/patch-core-stats.c
@@ -0,0 +1,13 @@
+--- core/stats.c.orig 2013-10-16 22:58:20.000000000 +0400
++++ core/stats.c 2013-10-28 21:19:30.000000000 +0400
+@@ -440,6 +440,10 @@ void uwsgi_stats_pusher_loop(struct uwsg
+ void *events = event_queue_alloc(1);
+ for (;;) {
+ int nevents = event_queue_wait_multi(ut->queue, 1, events, 1);
++ if (nevents < 0) {
++ uwsgi_log_verbose("ending the stats pusher thread...\n");
++ return;
++ }
+ if (nevents > 0) {
+ int interesting_fd = event_queue_interesting_fd(events, 0);
+ char buf[4096];