Daemonizing python

NinjaZombie ninjazombie at net.hr
Sun Sep 24 17:41:15 EDT 2006


Na dan Sun, 24 Sep 2006 14:35:31 -0700, Paul Rubin je napisao:
> Try it this way:
> 
>      import os, sys
>      print "Entering program"
> 
>      if os.fork():
>         sys.exit()              # parent process exits so shell returns
> 
>      while (1):                 # child process continues
>             pass    # some other work

This works! Thanks a bunch, Paul.



More information about the Python-list mailing list