lib/rack/reloader.rb in rack-1.3.6 vs lib/rack/reloader.rb in rack-1.3.7
- old
+ new
@@ -99,10 +99,10 @@
def safe_stat(file)
return unless file
stat = ::File.stat(file)
return file, stat if stat.file?
- rescue Errno::ENOENT, Errno::ENOTDIR
+ rescue Errno::ENOENT, Errno::ENOTDIR, Errno::ESRCH
@cache.delete(file) and false
end
end
end
end