[EXTERNAL] Re: scp stalls on uploading in cygwin 3.5 current master.
Sat Aug 26 23:41:36 GMT 2023
On Sat, 26 Aug 2023 14:08:34 +0000
"Lavrentiev, Anton (NIH/NLM/NCBI) [C]" wrote:
> IMO you're triggering an undefined (or not well-defined) behavior, because of the murky status
> of the byte count of 0. It may work now, but it may not work in the future...
> RETURN VALUE
> On success, the number of bytes written is returned (zero indicates nothing was written). On error, -1 is returned, and
> errno is set appropriately.
> If count is zero and fd refers to a regular file, then write() may return a failure status if one of the errors below is
> detected. If no errors are detected, 0 will be returned without causing any other effect. If count is zero and fd refers
> to a file other than a regular file, the results are not specified.
You seems to reffer Linux man, however, this patch calls
ssize_t fhandler_socket_wsock::write (const void *in_ptr, size_t len)
of cygwin, NOT Linux write().
Takashi Yano <email@example.com>
More information about the Cygwin