[PATCH] buglets in file locking

Bryce McKinlay mckinlay@redhat.com
Fri Nov 12 16:34:00 GMT 2004


Hi Casey,

Casey Marshall wrote:

>Hi,
>
>This patch fixes a couple of buglets in the FileLock implementation in
>libgcj. Both were flipped meanings, one that a file lock is valid only
>while the associated channel is open, and another that a shared lock
>maps to F_RDLCK. The original implementation assumed the opposite.
>
>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.
>  
>

Looks good. Please check this in. Thanks!

Bryce



More information about the Java-patches mailing list