* 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.
This commit is contained in:
Christopher Faylor
2001-09-11 15:25:08 +00:00
parent 24b1ccc647
commit dbc82a87a3
6 changed files with 32 additions and 22 deletions

View File

@ -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;