[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,7 +813,6 @@ 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
|
||||||
@ -821,6 +820,7 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
|
|||||||
open_file_without_flock(path, flags, &block)
|
open_file_without_flock(path, flags, &block)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
# The path to the running Ruby interpreter.
|
# The path to the running Ruby interpreter.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user