FileLock.java (isValid): locks are valid if the channel is open.
2004-11-11 Casey Marshall <csm@gnu.org> * gnu/java/nio/FileLock.java (isValid): locks are valid if the channel is open. * gnu/java/nio/channels/natFileChannelPosix.cc (lock): use 'F_RDLCK' for shared locks, 'F_WRLCK' for exclusive locks. From-SVN: r90538
This commit is contained in:
committed by
Bryce McKinlay
parent
556f03c4f0
commit
2941ddc40c
@@ -72,7 +72,7 @@ public class FileLockImpl extends FileLock
|
||||
|
||||
public boolean isValid ()
|
||||
{
|
||||
return !channel().isOpen();
|
||||
return channel().isOpen();
|
||||
}
|
||||
|
||||
public synchronized void release () throws IOException
|
||||
|
||||
Reference in New Issue
Block a user