Hello, I'm trying to lock a file using file.flock(File::LOOK_EX)
The problem is blocking the application if it cannot lock the file.
rescue doesn't help either.
Is there a way to report flock an error if it cannot lock the file on the first try?
source share