This is the mail archive of the cygwin-patches 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]
Other format: [Raw text]

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


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

Attachment: signature.asc
Description: PGP signature


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