Module: FiberAudit::Runtime::Probes::Subprocess::ProcessHook
- Defined in:
- lib/fiber_audit/runtime/probes/subprocess.rb
Instance Method Summary collapse
- #detach ⇒ Object
- #exec ⇒ Object
- #spawn ⇒ Object
- #wait ⇒ Object
- #wait2 ⇒ Object
- #waitall ⇒ Object
- #waitpid ⇒ Object
- #waitpid2 ⇒ Object
Instance Method Details
#detach ⇒ Object
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 |
#exec ⇒ Object
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 |
#spawn ⇒ Object
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 |
#wait ⇒ Object
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 |
#wait2 ⇒ Object
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 |
#waitall ⇒ Object
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 |