[PATCH] Ensure that send() interrupted by a signal returns sucessfully

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jun 19 10:55:00 GMT 2017


On Jun 15 15:30, Erik M. Bray wrote:
> When SA_RESTART is not set on a socket, a blocking send() that is
> interrupted mid-transition by a signal should return success (and
> report just how many bytes were actually transmitted).
> 
> The err variable used here was not always guaranteed to be set
> correctly in the loop, so better to just remove it and call
> WSAGetLastError() explicitly.
> ---
>  winsup/cygwin/fhandler_socket.cc | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Pushed.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20170619/4b77fbda/attachment.sig>


More information about the Cygwin-patches mailing list