[PATCH] file.flock(File::LOCK_UN | File::LOCK_NB) support
---------------------------------------------------------
Key: JRUBY-1379
URL: http://jira.codehaus.org/browse/JRUBY-1379
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Environment: MacOS, SentOs, WinXP
Reporter: Dmitry Verkhovsky
Priority: Minor
Attachments: flock.patch
irb(main):009:0> file.flock(File::LOCK_UN | File::LOCK_NB)
=> 0
Jirb(main):009:0> file.flock(File::LOCK_UN | File::LOCK_NB)
=> false
^^^^^^^ SHOULD BE 0
Patch includes fix, unit-test and a bonus :) - one of the FILE unit tests
doesn't clean up temp file, but should.
One more thing, the java file need to be reformated, as it has tabs instead of
spaces in many places. Didn't do it to keep the patch clear.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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