Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 13 Jul 2004 15:05:03 -0700 From: Yitzchak Scott-Thoennes To: cygwin AT cygwin DOT com Subject: Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs Message-ID: <20040713220503.GA2896@efn.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Organization: bs"d X-IsSubscribed: yes On Tue, Jul 13, 2004 at 12:21:50PM -0400, Igor Pechtchanski wrote: > bufalloc = 0; > do > { > ==> bufalloc += 1000; > > I have a theory that the performance data may be added in chunks larger > than 1000 bytes, so the fhandler just can't keep up with the amount of > data, and loops indefinitely. Since you intend to build the DLL from CVS, > you're probably in the best position to check whether this theory is true > (by either just upping the increment amount to something like 5000, or > even doubling the buffer size on each iteration). Perhaps bufalloc += max(bufalloc, 1000); -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/