svn commit: r331871 - head/www/uwsgi/files
Dmitry Sivachenko
demon at FreeBSD.org
Mon Oct 28 17:21:36 UTC 2013
Author: demon
Date: Mon Oct 28 17:21:35 2013
New Revision: 331871
URL: http://svnweb.freebsd.org/changeset/ports/331871
Log:
Add a patch to fix endless loop during reload under certain conditions.
Obtained from: Project git repository
Added:
head/www/uwsgi/files/patch-core-stats.c (contents, props changed)
Added: head/www/uwsgi/files/patch-core-stats.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/uwsgi/files/patch-core-stats.c Mon Oct 28 17:21:35 2013 (r331871)
@@ -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];
More information about the svn-ports-all
mailing list