This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Getrusage update


On Mon, Oct 22, 2001 at 09:23:27AM +1000, Robert Collins wrote:
>The attached patch, (I know, the Changelog should be in the body, but as Evolution just died on me (oh, for a release of libgal that doesn't change weekly!) I'm in a non-normal mailing mode here) fills in the ru_maxrss and ru_majflt fields for getrusage. This was reported to me by Guido Serassio who is porting squid to native win32 code and was patching squid...
>
>Anyway, the patch is straightforward, with one kink: The already used function GetProcessTimes is documented by MSDN as being NT only, but it's not in the autoload.cc file. I wasn't sure what to do with my new call, GetProcessMemoryInfo therefore, so I erred on the side of caution.
>
>If possible, I'd love to see this in 1.3.4. 
>
>And lastly, I haven't done massive testing on it yet.

I've checked in a modified version of this patch.

There is no reason to check for winnt since that could be implied by the
call to GetProcessMemoryInfo if you use LoadDLLfuncEx.

Thanks.

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]