interface documentation

class IReactorDaemonize(Interface): (source)

Known implementations: twisted.internet.kqreactor.KQueueReactor

View In Hierarchy

A reactor which provides hooks that need to be called before and after daemonization.

Notes:

  • This interface SHOULD NOT be called by applications.
  • This interface should only be implemented by reactors as a workaround (in particular, it's implemented currently only by kqueue()). For details please see the comments on ticket #1918.
Method afterDaemonize Hook to be called immediately after daemonization. This may only be called after beforeDaemonize had been called previously.
Method beforeDaemonize Hook to be called immediately before daemonization. No reactor methods may be called until afterDaemonize is called.
def afterDaemonize(): (source)

Hook to be called immediately after daemonization. This may only be called after beforeDaemonize had been called previously.

def beforeDaemonize(): (source)

Hook to be called immediately before daemonization. No reactor methods may be called until afterDaemonize is called.