This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cat /proc/registry/HKEY_PERFOMANCE_DATA/@ hangs
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/