[2.4.2/Linux] Getting Python to fork?

Jon Ribbens jon+usenet at unequivocal.co.uk
Mon Feb 4 12:36:58 EST 2008


On 2008-02-04, Christian Heimes <lists at cheimes.de> wrote:
> Jon Ribbens wrote:
>> Why? I don't think you do.
>> Neither does BSD daemon.c or glibc daemon.c
>
> The problem is well documented at
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/66012

OK I understand what is being said here, although it seems a bit
unlikely (daemon process opens a tty), but what is puzzling me is
why, if it's so necessary, does neither Linux nor *BSD do this in
their daemon() functions? It would seem surprising if the operating
system authors don't know how to make a daemon process in their
own OS ;-)



More information about the Python-list mailing list