[prev in list] [next in list] [prev in thread] [next in thread]
List: cygwin-patches
Subject: Re: [PATCH] Ensure that send() interrupted by a signal returns sucessfully
From: Corinna Vinschen <corinna-cygwin () cygwin ! com>
Date: 2017-06-19 10:55:47
Message-ID: 20170619105547.GB26654 () calimero ! vinschen ! de
[Download RAW message or body]
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
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic