Date | Commit message (Collapse) |
|
File#size is available in modern Rubies so the extra syscall
is avoided.
|
|
IO.copy_stream is standard in 1.9+ and can use pread when
given an offset. We do not need to use pwrite with fcntl
locking, actually.
|
|
And rely on frozen string optimizations in Ruby while we're at it.
|
|
Found in the check-warnings target in pkg.mk
|
|
Of course, RDoc doesn't know quantity vs quality :)
|
|
fcntl() locks are per-process, so we also need something
to protect individual threads within a process from stepping
over each other.
|
|
Seems to basically work
|
|
|