On Wed, Jul 24, 2013 at 3:35 PM, Antoine Pitrou
On Wed, 24 Jul 2013 15:25:50 -0700 Guido van Rossum
wrote: To reduce the need for 3rd party subprocess creation code, we should have better daemon creation code in the stdlib -- I wrote some damn robust code for this purpose in my previous job, but it never saw the light of day.
What do you call "daemon"? An actual Unix-like daemon?
Yeah, a background process with parent PID 1 and not associated with any terminal group.
But is that relevant to the PEP? A daemon only uses fork(), not exec(). Or have I misunderstood your concern?
Actually it's common for "daemonization" libraries to run an arbitrary executable as a daemon, and then it would be relevant. E.g. zdaemon (https://pypi.python.org/pypi/zdaemon) does this. (Disclosure: I wrote the first version of zdaemon when I worked for Zope Corp over a decade ago. :-) -- --Guido van Rossum (python.org/~guido)