[2.4.2/Linux] Getting Python to fork?
Gilles Ganault
nospam at nospam.com
Wed Feb 13 07:41:22 EST 2008
On Mon, 04 Feb 2008 16:40:01 +0100, Rolf van de Krol
<python at rolfvandekrol.nl> wrote:
>To create a deamon, you indeed need to fork two times.
Do I really need this much complication just to exit the script and
let a child handle the pop-up?
I've changed this line, and the parent still doesn't return, and the
script waits until the child ends before resuming to the next step:
if os.fork():
#BAD? sys.exit(0)
os._exit(0)
else:
Thanks.
More information about the Python-list
mailing list