class Geminabox::Server
def with_rlock(&block)
def with_rlock(&block) file_class.open(Geminabox.lockfile, File::RDWR | File::CREAT) do |f| ReentrantFlock.synchronize(f, File::LOCK_EX | File::LOCK_NB, &block) end end
def with_rlock(&block) file_class.open(Geminabox.lockfile, File::RDWR | File::CREAT) do |f| ReentrantFlock.synchronize(f, File::LOCK_EX | File::LOCK_NB, &block) end end