Method: Rex::IO::RingBuffer#monitor_thread

Defined in:
lib/rex/io/ring_buffer.rb

#monitor_threadObject

The built-in monitor thread (normally unused with Metasploit)



64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/rex/io/ring_buffer.rb', line 64

def monitor_thread
  Thread.new do
    begin
    while self.fd
      buff = self.fd.get_once(-1, 1.0)
      next if not buff
      store_data(buff)
    end
    rescue ::Exception => e
      self.monitor_thread_error = e
    end
  end
end