Den Tue, 05 Jun 2007 22:01:44 +0200 skrev Rob Wolfe:

> Thomas Dybdahl Ahle <[EMAIL PROTECTED]> writes:
> 
>> But you can't ever catch sigkill.
> 
> There is no protection against sigkill.
> 
>> Isn't there a way to make sure the os kills the childprocess when the
>> parrent dies?
> 
> If the parent dies suddenly without any notification childprocesses
> become zombies and there is no way to avoid that.

If I call "kill -9 pythonpid" on the python code you posted earlier, the 
terminal running the script will continue pinging forever.
If it was a harder program like a chessengine or such, it would continue 
consuming 100% cpu time.
Zombies would be fine to me.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to