module FileDaemon

FileDaemon defines some standard hooks for forking processes which retain file descriptors. Implementation derived from the Delayed::Job library: github.com/collectiveidea/delayed_job/blob/master/lib/delayed/worker.rb#L77-L98.

Public Class Methods

included(base) click to toggle source

Public: Extend the including class with before/after_fork hooks.

base - The including class.

Returns nothing.

# File lib/file_daemon.rb, line 11
def self.included(base)
  base.extend(ClassMethods)
end