Message249262
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. |
|
Date |
User |
Action |
Args |
2015-08-27 21:20:29 | memeplex | set | recipients:
+ memeplex |
2015-08-27 21:20:29 | memeplex | set | messageid: <1440710429.87.0.104720490474.issue24948@psf.upfronthosting.co.za> |
2015-08-27 21:20:29 | memeplex | link | issue24948 messages |
2015-08-27 21:20:29 | memeplex | create | |
|