summaryrefslogtreecommitdiff
path: root/ace/Handle_Ops.cpp
diff options
context:
space:
mode:
authorbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-01-17 18:05:51 +0000
committerbrunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-01-17 18:05:51 +0000
commit61a3f9ce2e5b7a22afdc21154d8f0857dba93cd1 (patch)
tree21c8d2b734390ccf10a4bc6cff11592894cd6614 /ace/Handle_Ops.cpp
parente61d89d5622cdc4dbd6cfd6a588c649a0d55761c (diff)
downloadATCD-61a3f9ce2e5b7a22afdc21154d8f0857dba93cd1.tar.gz
ChangeLogTag:Wed Jan 17 10:00:42 2001 Darrell Brunsch <brunsch@uci.edu>
Diffstat (limited to 'ace/Handle_Ops.cpp')
-rw-r--r--ace/Handle_Ops.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/ace/Handle_Ops.cpp b/ace/Handle_Ops.cpp
index 2820f66c9f1..46e2d2806f4 100644
--- a/ace/Handle_Ops.cpp
+++ b/ace/Handle_Ops.cpp
@@ -18,9 +18,15 @@ ACE_Handle_Ops::handle_timed_open (ACE_Time_Value *timeout,
if (timeout != 0)
{
+#if !defined (ACE_WIN32)
+ // On Win32, ACE_NONBLOCK gets recognized as O_WRONLY so we
+ // don't use it there
+ flags |= ACE_NONBLOCK;
+#endif /* ACE_WIN32 */
+
// Open the named pipe or file using non-blocking mode...
ACE_HANDLE handle = ACE_OS::open (name,
- flags | ACE_NONBLOCK,
+ flags,
perms);
if (handle == ACE_INVALID_HANDLE
&& (errno == EWOULDBLOCK