[rubygems/rubygems] Scope rescuing Errno::ENOLCK
to just File.open
https://github.com/rubygems/rubygems/commit/2a9d347d29
This commit is contained in:
parent
7cf7e7e2c0
commit
da12d63431
@ -813,12 +813,12 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
|
|||||||
rescue Errno::ENOSYS, Errno::ENOTSUP
|
rescue Errno::ENOSYS, Errno::ENOTSUP
|
||||||
end
|
end
|
||||||
yield io
|
yield io
|
||||||
end
|
rescue Errno::ENOLCK # NFS
|
||||||
rescue Errno::ENOLCK # NFS
|
if Thread.main != Thread.current
|
||||||
if Thread.main != Thread.current
|
raise
|
||||||
raise
|
else
|
||||||
else
|
open_file_without_flock(path, flags, &block)
|
||||||
open_file_without_flock(path, flags, &block)
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user