Author memeplex
Recipients memeplex
Date 2015-08-27.21:20:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1440710429.87.0.104720490474.issue24948@psf.upfronthosting.co.za>
In-reply-to
Content
Related to but not the same than https://bugs.python.org/issue13812.

Try this:

```
import multiprocessing as mp
import time


def g():
    time.sleep(100)

def f():
    mp.Process(target=g).start()
    1/0

mp.Process(target=f).start()
```

It won't show the ZeroDivisionError until you keyboard interrupt the g() process or wait for it to end. This is because _exit_function will join every active non-daemon child, which happens before printing and flushing the error. IMO the exception should be shown before joining children, since keeping the error silent is asking for trouble.
History
Date User Action Args
2015-08-27 21:20:29memeplexsetrecipients: + memeplex
2015-08-27 21:20:29memeplexsetmessageid: <1440710429.87.0.104720490474.issue24948@psf.upfronthosting.co.za>
2015-08-27 21:20:29memeplexlinkissue24948 messages
2015-08-27 21:20:29memeplexcreate