Module: Tanker::CTanker::ForkHook

Defined in:
lib/tanker/c_tanker/fork_hook.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.installObject



16
17
18
# File 'lib/tanker/c_tanker/fork_hook.rb', line 16

def self.install
  Process.singleton_class.prepend(self)
end

Instance Method Details

#_fork(*args) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/tanker/c_tanker/fork_hook.rb', line 8

def _fork(*args)
  CTanker.tanker_before_fork
  Core.before_fork
  super
ensure
  CTanker.tanker_after_fork
end