Exclusive locking actually can lock already locked file.
--------------------------------------------------------
Key: JRUBY-952
URL: http://jira.codehaus.org/browse/JRUBY-952
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.0.0RC1
Reporter: Ola Bini
Assignee: Ola Bini
Priority: Minor
Fix For: JRuby 1.0.0
If doing an exclusive lock on the same file from two JRuby processes, you will
actually get a lock on both files. The reason for this is that the open code in
IOHandlerSeekable actaully deleted the file when it was supposed to truncate
it. The solution was to just truncate the existing file instead.
--
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