MCPcopy Create free account
hub / github.com/DingGuodong/LinuxBashShellScriptForOps / daemonize

Method daemonize

projects/PythonDaemon/pydaemon.py:36–62  ·  view source on GitHub ↗

do the UNIX double-fork magic, see Stevens' "Advanced Programming in the UNIX Environment" for details (ISBN 0201563177) http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC16 http://stackoverflow.com/questions/881388/what-is-the-reason-for-performing-a-double-fork-w

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

startMethod · 0.95

Calls 4

forkMethod · 0.95
dettach_envMethod · 0.95
attach_streamMethod · 0.95
create_pidfileMethod · 0.95

Tested by

no test coverage detected