Multiprocessing: killing children when parent dies

Terry Reedy tjreedy at udel.edu
Fri Oct 18 14:58:49 EDT 2013


On 10/18/2013 8:52 AM, Марк Коренберг wrote:
> import prctl

This is not a stdlib module.

> prct.set_pdeathsig(.....)
> if os.getppid() == 1:
>   raise AlreadyDead()

What is your point?

Your signature said
 >Segmentation fault

If you meant that the above code segfaults, then there is a bug in 
prctl. Tell its authors.

-- 
Terry Jan Reedy





More information about the Python-list mailing list