module Datadog::Utils::Forking::ClassExtensions
Adds additional functionality for Classes that implement Forking
Public Class Methods
new(*args, &block)
click to toggle source
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.
Calls superclass method
# File lib/ddtrace/utils/forking.rb, line 46 def initialize(*args, &block) super update_fork_pid! end