diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-11 15:25:08 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-11 15:25:08 +0000 |
commit | dbc82a87a31073b0dbcec8a162f0afc994940b5c (patch) | |
tree | 7fb9132cde3d941759e65889bc5fcbfd52213c2b /winsup/cygwin/dtable.cc | |
parent | 24b1ccc647ca9830c51521583b527f67540a9ee2 (diff) | |
download | cygnal-dbc82a87a31073b0dbcec8a162f0afc994940b5c.tar.gz cygnal-dbc82a87a31073b0dbcec8a162f0afc994940b5c.tar.bz2 cygnal-dbc82a87a31073b0dbcec8a162f0afc994940b5c.zip |
* 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.cc | 2 |
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; |