subprocess leaves child living

Nick Craig-Wood nick at craig-wood.com
Wed Jun 6 07:33:30 CEST 2007


Thomas Dybdahl Ahle <lobais at gmail.com> wrote:
>  But you can't ever catch sigkill.
>  Isn't there a way to make sure the os kills the childprocess when the 
>  parrent dies?

Not as far as I know.

If you've got a pipe open to the child then killing the parent should
deliver SIGPIPE to the child which may (or may not) kill it.  At least
it got some sort of notification.

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list