(13/11/26 19:23), no6v (Nobuhiro IMAI) wrote:
>            File.open(@filename, File::WRONLY | File::APPEND) do |lock|
>              lock.flock(File::LOCK_EX) # inter-process locking. will be unlocked at closing file
> -            ino = lock.stat.ino
> -            if ino == File.stat(@filename).ino
> +            if File.identical?(lock, @dev)

No needs to compare with @filename?