[issue11663] concurrent.futures (or multiprocessing?) doesn't detect killed processes

STINNER Victor report at bugs.python.org
Thu Mar 24 17:16:54 CET 2011

STINNER Victor <victor.stinner at haypocalc.com> added the comment:

In the following example, if I kill the child process, the parent is immediatly done:
from os import getpid
from time import sleep
from multiprocessing import Process

def f(sec):
    print("child %s: wait %s seconds" % (getpid(), sec))

if __name__ == '__main__':
    print("parent %s: wait child" % (getpid(),))
    p = Process(target=f, args=(30,))


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list