Module: FiberAudit::Runtime::Probes::Subprocess::ProcessHook

Defined in:
lib/fiber_audit/runtime/probes/subprocess.rb

Instance Method Summary collapse

Instance Method Details

#detachObject



114
115
116
117
118
119
# File 'lib/fiber_audit/runtime/probes/subprocess.rb', line 114

def detach(...)
  Registry.observe(
    operation: 'Process.detach',
    measurements: { returns_thread: true, does_not_wait: true }
  ) { super }
end

#execObject



71
72
73
74
75
76
77
# File 'lib/fiber_audit/runtime/probes/subprocess.rb', line 71

def exec(...)
  Registry.observe(
    operation: 'Process.exec',
    measurements: { replaces_process: true },
    emit_start: true
  ) { super }
end

#spawnObject



64
65
66
67
68
69
# File 'lib/fiber_audit/runtime/probes/subprocess.rb', line 64

def spawn(...)
  Registry.observe(
    operation: 'Process.spawn',
    measurements: { returns_pid: true, does_not_wait: true }
  ) { super }
end

#waitObject



79
80
81
82
83
84
# File 'lib/fiber_audit/runtime/probes/subprocess.rb', line 79

def wait(...)
  Registry.observe(
    operation: 'Process.wait',
    measurements: { waits_for_child: true }
  ) { super }
end

#wait2Object



86
87
88
89
90
91
# File 'lib/fiber_audit/runtime/probes/subprocess.rb', line 86

def wait2(...)
  Registry.observe(
    operation: 'Process.wait2',
    measurements: { waits_for_child: true }
  ) { super }
end

#waitallObject



107
108
109
110
111
112
# File 'lib/fiber_audit/runtime/probes/subprocess.rb', line 107

def waitall(...)
  Registry.observe(
    operation: 'Process.waitall',
    measurements: { waits_for_child: true }
  ) { super }
end

#waitpidObject



93
94
95
96
97
98
# File 'lib/fiber_audit/runtime/probes/subprocess.rb', line 93

def waitpid(...)
  Registry.observe(
    operation: 'Process.waitpid',
    measurements: { waits_for_child: true }
  ) { super }
end

#waitpid2Object



100
101
102
103
104
105
# File 'lib/fiber_audit/runtime/probes/subprocess.rb', line 100

def waitpid2(...)
  Registry.observe(
    operation: 'Process.waitpid2',
    measurements: { waits_for_child: true }
  ) { super }
end