diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-02-08 14:54:10 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-02-08 14:54:10 +0300 |
commit | fae28904e9bc81e39a14ff0bd3a35c955ba67001 (patch) | |
tree | 3f9f016ce356cb48bd0be5ecc7eb10a3652e68ed /winsup/cygwin/dtable.cc | |
parent | 9f25eed9c96cb37ee58fcb65aafb44f9c6183dde (diff) |
* dtable.cc (dtable::dup2): Store fd for fhandler_socket.
* fhandler.h (fhandler_base::set_fd): New virtual method.
(fhandler_base::get_fd): Ditto.
(fhandler_socket::set_fd): Ditto.
(fhandler_socket::get_fd): Ditto.
* fhandler_socket.cc (fhandler_socket::read): Call cygwin_recv instead
of native Winsock recv.
(fhandler_socket::write): Call cygwin_send instead of native Winsock
send.
* net.cc (fdsock): Store fd in fhandler_socket.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r-- | winsup/cygwin/dtable.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index f09ddec6c..ab6f3c218 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -411,6 +411,7 @@ dtable::dup2 (int oldfd, int newfd) if (!not_open (newfd)) _close (newfd); fds[newfd] = newfh; + newfh->set_fd (newfd); ReleaseResourceLock (LOCK_FD_LIST, WRITE_LOCK | READ_LOCK, "dup"); MALLOC_CHECK; |