2003-03-19 Brian Ford <[EMAIL PROTECTED]>
* fhandler_socket.cc (sendto): Handle SIGPIPE for ECONNRESET.
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax: 314-551-8444
Index: fhandler_socket.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/fhandler_socket.cc,v
retrieving revision 1.88
diff -u -p -r1.88 fhandler_socket.cc
--- fhandler_socket.cc 11 Mar 2003 16:49:58 -0000 1.88
+++ fhandler_socket.cc 20 Mar 2003 00:08:45 -0000
@@ -1059,7 +1059,7 @@ fhandler_socket::sendto (const void *ptr
res = ret;
/* Special handling for SIGPIPE */
- if (res == -1 && get_errno () == ESHUTDOWN)
+ if (res == -1 && (get_errno () == ESHUTDOWN || get_errno () == ECONNRESET))
{
set_errno (EPIPE);
if (! (flags & MSG_NOSIGNAL))
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/