Switched FileLock to use fcntl for compatability with the Java layer.
The Java layer (i.e. Harmony) is currently implementing FileLock this way so we are aligning to be compatable with locks created from FileChannel#lock. This code is therefore fragile and depends on deep implementation details of Harmony. For this reason, this solution should be replaced with something more reliable.
Loading
Please register or sign in to comment