This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: [PORTS] Re: ps and psql from PostgreSQL not working with cygwin-1.1.5-2
- To: cygwin at sources dot redhat dot com
- Subject: Re: [PORTS] Re: ps and psql from PostgreSQL not working with cygwin-1.1.5-2
- From: Jason Tishler <Jason dot Tishler at dothill dot com>
- Date: Fri, 3 Nov 2000 17:15:04 -0500
- Organization: Dot Hill Systems Corp.
- References: <20001029205046.A19137@redhat.com> <kvd7gh6ngu.fsf@vzell.de.oracle.com> <20001031114831.A27220@redhat.com> <20001102122634.A211@dothill.com> <20001103160800.A523@dothill.com> <20001103163716.A19118@redhat.com>
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.Tishler@dothill.com
Hazlet, NJ 07730 USA WWW: http://www.dothill.com
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},
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com