| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| X-Authentication-Warning: | shell-3.enteract.com: fcy set sender to fred AT ontosys DOT com using -f |
| Date: | Wed, 16 May 2001 13:26:03 -0500 |
| From: | Fred Yankowski <fred AT ontosys DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | patch for EINTR result of interrupted recv() |
| Message-ID: | <20010516132603.A3345@enteract.com> |
| Mime-Version: | 1.0 |
| User-Agent: | Mutt/1.2.5i |
I've been testing the new interruptible recv() and found that errno is
not set correctly when recv() returns after being interrupted. The
appended patch fixes the problem for me.
--
Fred Yankowski fred AT OntoSys DOT com tel: +1.630.879.1312
Principal Consultant www.OntoSys.com fax: +1.630.879.1370
OntoSys, Inc 38W242 Deerpath Rd, Batavia, IL 60510, USA
--
Index: net.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/net.cc,v
retrieving revision 1.53
diff -u -r1.53 net.cc
--- net.cc 2001/05/15 08:15:54 1.53
+++ net.cc 2001/05/16 18:24:49
@@ -263,6 +263,7 @@
static struct tl errmap[] =
{
+ {WSAEINTR, "WSAEINTR", EINTR},
{WSAEWOULDBLOCK, "WSAEWOULDBLOCK", EWOULDBLOCK},
{WSAEINPROGRESS, "WSAEINPROGRESS", EINPROGRESS},
{WSAEALREADY, "WSAEALREADY", EALREADY},
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |