From owner-svn-ports-all@FreeBSD.ORG Mon Oct 28 17:21:36 2013 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 3B3D17BF; Mon, 28 Oct 2013 17:21:36 +0000 (UTC) (envelope-from demon@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 291892F20; Mon, 28 Oct 2013 17:21:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r9SHLalf050048; Mon, 28 Oct 2013 17:21:36 GMT (envelope-from demon@svn.freebsd.org) Received: (from demon@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r9SHLaa7050046; Mon, 28 Oct 2013 17:21:36 GMT (envelope-from demon@svn.freebsd.org) Message-Id: <201310281721.r9SHLaa7050046@svn.freebsd.org> From: Dmitry Sivachenko Date: Mon, 28 Oct 2013 17:21:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r331871 - head/www/uwsgi/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Oct 2013 17:21:36 -0000 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];