Cameron Simpson <c...@zip.com.au> writes:

> The standard trick is to make the process a grandchild instead of a
> child.  Fork, kick off subprocess, exit (the forked child).

For Cecil Westerhof's benefit: If you haven't seen it, the
‘python-daemon’ library is designed to get this, and other fiddly
aspects of daemonising the current program, correct in Python code.

    <URL:https://pypi.python.org/pypi/python-daemon/>

-- 
 \     “Injustice is relatively easy to bear; what stings is justice.” |
  `\                                                 —Henry L. Mencken |
_o__)                                                                  |
Ben Finney

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to