diff options
author | Christopher Faylor <me@cgf.cx> | 2002-07-01 19:03:26 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-07-01 19:03:26 +0000 |
commit | 1bc9effd28c85148d788043f3d99c657e9dda3d4 (patch) | |
tree | 4764a48aae2aaabb652fd1f3b19b2a899b540348 /winsup/cygwin/net.cc | |
parent | ef9647e524e8f571947632c6815ff37fc972b150 (diff) | |
download | cygnal-1bc9effd28c85148d788043f3d99c657e9dda3d4.tar.gz cygnal-1bc9effd28c85148d788043f3d99c657e9dda3d4.tar.bz2 cygnal-1bc9effd28c85148d788043f3d99c657e9dda3d4.zip |
* fhandler_clipboard.c (fhandler_dev_clipboard::open): Force text mode.
* fhandler_console.cc (fhandler_console::open): *Really* force binary mode
rather than make it optional.
* fhandler_proc.cc (fhandler_proc::open): Ditto.
* fhandler_process.cc (fhandler_process::open): Ditto.
* fhandler_random.cc (fhandler_dev_random::fhandler_dev_random): Ditto.
* fhandler_raw.cc (fhandler_dev_raw::open): Ditto.
* fhandler_registry.cc (fhandler_registry::open): Ditto.
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
* fhandler_virtual.cc (fhandler_virtual::open): Ditto.
* fhandler_windows.cc (fhandler_windows::open): Ditto.
* fhandler_zero.cc (fhandler_dev_zero::open): Ditto.
* net.cc (fdsock): Ditto.
* path.cc (set_flags): Add more debugging.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index d3eba725c..c54dc7eed 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -510,7 +510,7 @@ fdsock (int& fd, const char *name, SOCKET soc) debug_printf ("not setting socket inheritance since winsock2_active %d", winsock2_active); fhandler_socket *fh = (fhandler_socket *) cygheap->fdtab.build_fhandler (fd, FH_SOCKET, name); fh->set_io_handle ((HANDLE) soc); - fh->set_flags (O_RDWR, O_BINARY); + fh->set_flags (O_RDWR | O_BINARY); debug_printf ("fd %d, name '%s', soc %p", fd, name, soc); return fh; } |