lib/contrast/utils/io_util.rb in contrast-agent-7.4.0 vs lib/contrast/utils/io_util.rb in contrast-agent-7.4.1

- old
+ new

@@ -5,10 +5,12 @@ module Contrast module Utils # Util for information about an IO module IOUtil + UNKNOWN_IO = 'unknown' + extend Contrast::Components::Logger::InstanceMethods class << self # We're only going to call rewind on things that we believe are safe to # call it on. This method allow lists those cases and returns false in @@ -46,9 +48,10 @@ status = io.stat return false unless status return false if status.pipe? return false if status.socket? + return false if status.ftype == UNKNOWN_IO true end end end