Best way to prevent zombie processes
Ben Finney
ben+python at benfinney.id.au
Sun May 31 23:37:25 EDT 2015
Cameron Simpson <cs at 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
More information about the Python-list
mailing list