Launching a subprocess without waiting around for the result?

Marco Bizzarri marco.bizzarri at gmail.com
Fri Sep 19 22:57:16 CEST 2008


On Fri, Sep 19, 2008 at 10:48 PM, Almar Klein <almar.klein at gmail.com> wrote:
>> Ah, no, that's a different thing. If the parent exits, the child will
>> also be killed I believe.
>
> Not if it's stuck in some endless loop...
>
>> If you want to spawn a process and have it live on independent of the
>> parent, you want to make the child process a "daemon", detatching
>> itself from the parent's environment. I don't recall how that's done
>> immediately, but those are the terms to search for.
>
> I'm curious how this can be done, does anyone know this?
>
> Almar
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>


First result in "making a daemon in python with google":

http://mail.python.org/pipermail/python-list/2007-February/427692.html

(not tested)

Regards
Marco
-- 
Marco Bizzarri
http://notenotturne.blogspot.com/
http://iliveinpisa.blogspot.com/



More information about the Python-list mailing list