Issue Type: Bug Bug
Assignee: Thomas E Enebo
Created: 19/Sep/12 2:01 AM
Description:

When running fcntl(Fcntl::F_GETFL) from a File class, in JRuby always return zero and in MRI doesn't:

MRI:

~$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.4.0]
~$ ruby -e 'require "fcntl"; p File.open("/tmp/test","w").fcntl(Fcntl::F_GETFL)'
1
~$ ruby -e 'require "fcntl"; p File.open("/tmp/test","w+").fcntl(Fcntl::F_GETFL)'
2

JRuby:

~$ ruby -v
jruby 1.6.7.2 (ruby-1.8.7-p357) (2012-05-01 26e08ba) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_35) [darwin-x86_64-java]
~$ ruby -e 'require "fcntl"; p File.open("/tmp/test","w").fcntl(Fcntl::F_GETFL)'
0
~$ ruby -e 'require "fcntl"; p File.open("/tmp/test","w+").fcntl(Fcntl::F_GETFL)'
0

Project: JRuby
Labels: jruby
Priority: Major Major
Reporter: Jose Luis
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to