Module: NewRelic::Security::Instrumentation::PTY::Prepend

Includes:
NewRelic::Security::Instrumentation::PTY
Defined in:
lib/newrelic_security/instrumentation-security/pty/prepend.rb

Instance Method Summary collapse

Methods included from NewRelic::Security::Instrumentation::PTY

#getpty_on_enter, #getpty_on_exit, #spawn_on_enter, #spawn_on_exit

Instance Method Details

#getpty(*var, &block) ⇒ Object



13
14
15
16
17
# File 'lib/newrelic_security/instrumentation-security/pty/prepend.rb', line 13

def getpty(*var, &block)
  retval = nil
  event = getpty_on_enter(*var) { retval = super }
  getpty_on_exit(event) { return retval }
end

#spawn(*var) ⇒ Object



7
8
9
10
11
# File 'lib/newrelic_security/instrumentation-security/pty/prepend.rb', line 7

def spawn(*var)
  retval = nil
  event = spawn_on_enter(*var) { retval = super }
  spawn_on_exit(event) { return retval }
end