Date: Mon, 28 Oct 2013 17:21:35 +0000 (UTC) From: Dmitry Sivachenko <demon@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r331871 - head/www/uwsgi/files Message-ID: <201310281721.r9SHLaa7050046@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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];
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310281721.r9SHLaa7050046>