module Puppet::Util::AtFork
A module for building AtFork
handlers. These handlers are objects providing pre/post fork callbacks modeled after those registered by the `pthread_atfork` function. Currently there are two AtFork
handler implementations:
-
a noop implementation used on all platforms except
Solaris
(and possibly even there as a fallback) -
a
Solaris
implementation which ensures the forked process runs in a different contract than the parent process. This is necessary for agent runs started by the puppet agent service to be able to restart that service without being killed in the process as a consequence of running in the same contract as the service.
Public Class Methods
get_handler()
click to toggle source
# File lib/puppet/util/at_fork.rb 32 def self.get_handler 33 @handler_class.new 34 end