subprocess leaves child living
Thomas Dybdahl Ahle
lobais at gmail.com
Tue Jun 5 17:15:30 EDT 2007
Den Tue, 05 Jun 2007 22:01:44 +0200 skrev Rob Wolfe:
> Thomas Dybdahl Ahle <lobais at gmail.com> 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.
More information about the Python-list
mailing list