# File lib/lockfile.rb, line 367 def unlock raise UnLockError, "<#{ @path }> is not locked!" unless @locked @refresher.kill if @refresher and @refresher.status @refresher = nil begin File.unlink @path rescue Errno::ENOENT raise StolenLockError, @path ensure @thief = false @locked = false ObjectSpace.undefine_finalizer self if @clean end end