Mail Archives: cygwin/2000/11/03/17:17:37
--X+qttXX4LUHkMLnL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Fri, Nov 03, 2000 at 04:37:16PM -0500, Christopher Faylor wrote:
> I don't suppose that you can see any way to fix Cygwin to "do the right
> thing" can you?
I'm under the impression that Cygwin is "doing the right thing." If I'm
misguided (yet again), then Cygwin should map WinSock WSAEWOULDBLOCK to
EINPROGRESS as in my second patch which is re-attached to this email.
This would behavior would at least match better with some man pages
for connect. I'm not that experienced with sockets, so I don't know
what else this patch will break.
Thanks,
Jason
--
Jason Tishler
Director, Software Engineering Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corporation Fax: +1 (732) 264-8798
82 Bethany Road, Suite 7 Email: Jason DOT Tishler AT dothill DOT com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
--X+qttXX4LUHkMLnL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="net.cc.patch"
Index: net.cc
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/net.cc,v
retrieving revision 1.30
diff -u -r1.30 net.cc
--- net.cc 2000/10/28 05:41:43 1.30
+++ net.cc 2000/11/02 17:15:53
@@ -189,7 +189,7 @@
static struct tl errmap[] =
{
- {WSAEWOULDBLOCK, "WSAEWOULDBLOCK", EWOULDBLOCK},
+ {WSAEWOULDBLOCK, "WSAEWOULDBLOCK", EINPROGRESS},
{WSAEINPROGRESS, "WSAEINPROGRESS", EINPROGRESS},
{WSAEALREADY, "WSAEALREADY", EALREADY},
{WSAENOTSOCK, "WSAENOTSOCK", ENOTSOCK},
--X+qttXX4LUHkMLnL
Content-Type: text/plain; charset=us-ascii
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
--X+qttXX4LUHkMLnL--
- Raw text -