cygrunsrv + sshd + rsync = 20 times too slow -- throttled?

Ken Brown kbrown@cornell.edu
Thu Sep 23 13:03:13 GMT 2021


On 9/23/2021 4:26 AM, Takashi Yano wrote:
> * Make temporary_query_hdl() faster.

Thanks!  Again, I'm not familiar with the Windows functions that you used, so 
Corinna should review this too when she returns.

I have one question:

The documentation at 
https://docs.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-enumprocesses 
says, "There is no indication given when the buffer is too small to store all 
process identifiers. Therefore, if lpcbNeeded equals cb, consider retrying the 
call with a larger array."

Does this mean that EnumProcesses could return TRUE even if the buffer is too small?

Other than that, LGTM.

Ken


More information about the Cygwin-developers mailing list