aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-17 04:03:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-10-17 04:03:23 +0000
commit8301ed736904572cf4fa18a9eccc34ee5f9f6459 (patch)
treedfdefaf163b16d0f70475d6aaa7d77dc212c5218 /io.c
parent431e1b2807c6096582203ed6b3ebecc56afb880a (diff)
downloadruby-8301ed736904572cf4fa18a9eccc34ee5f9f6459.tar.gz
ruby.c: conflicting O_NONBLOCK
* ruby.c (load_file_internal): do not use O_NONBLOCK when conflicting with O_ACCMODE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 716bc6d506..b7e3316e3f 100644
--- a/io.c
+++ b/io.c
@@ -4981,7 +4981,7 @@ rb_io_oflags_fmode(int oflags)
{
int fmode = 0;
- switch (oflags & (O_RDONLY|O_WRONLY|O_RDWR)) {
+ switch (oflags & O_ACCMODE) {
case O_RDONLY:
fmode = FMODE_READABLE;
break;