Module: Datadog::Utils::Forking::ClassExtensions
- Defined in:
- lib/ddtrace/utils/forking.rb
Overview
Adds additional functionality for Classes that implement Forking
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ Object
Addresses an edge case where forking before invoking #update_fork_pid! on the object will cause forking to not be detected in the fork when it should have.
Instance Method Details
#initialize(*args, &block) ⇒ Object
Addresses an edge case where forking before invoking #update_fork_pid! on the object will cause forking to not be detected in the fork when it should have.
This wrapper prevents this by initializing the fork PID when the object is created.
46 47 48 49 |
# File 'lib/ddtrace/utils/forking.rb', line 46 def initialize(*args, &block) super update_fork_pid! end |