git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@352
be28352e-c001-0410-b1a7-
c7978e42abec
- if (!lockfile.exists())
- if (!lockfile.createNewFile()) {
+ /*if (!lockfile.createNewFile()) {
log.warn("Failed to create locked file "+lockfile);
return;
}
log.warn("Failed to create locked file "+lockfile);
return;
}
rafile=new RandomAccessFile(lockfile,"rw");
if (block)
lock = rafile.getChannel().lock();
rafile=new RandomAccessFile(lockfile,"rw");
if (block)
lock = rafile.getChannel().lock();
} catch (IOException e) {
log.error("Error! Problems with IO when creating a lock on "
+ lockfile.getAbsolutePath(),e);
} catch (IOException e) {
log.error("Error! Problems with IO when creating a lock on "
+ lockfile.getAbsolutePath(),e);
+ } // catch (Exception )
}
public boolean isLocked() {
}
public boolean isLocked() {