Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-11 19:25:08 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-11 19:25:08 +0400
commitdbc82a87a31073b0dbcec8a162f0afc994940b5c (patch)
tree7fb9132cde3d941759e65889bc5fcbfd52213c2b /winsup/cygwin/dtable.cc
parent24b1ccc647ca9830c51521583b527f67540a9ee2 (diff)
* cygwin.din: Remove cygwin_getshared.
* shared.cc: Ditto. * include/cygwin/version.h: Bump API minor number. * dtable.cc (dtable::build_fhandler): Fix incorrect test for socket.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 5dc56ee64..a89663bb3 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -246,7 +246,7 @@ dtable::build_fhandler (int fd, const char *name, HANDLE handle)
devn = FH_CONIN;
else if (GetConsoleScreenBufferInfo (handle, &cinfo))
devn= FH_CONOUT;
- else if (wsock_started && getpeername ((SOCKET) handle, &sa, &sal))
+ else if (wsock_started && getpeername ((SOCKET) handle, &sa, &sal) == 0)
devn = FH_SOCKET;
else if (GetFileType (handle) == FILE_TYPE_PIPE)
devn = FH_PIPE;