Error with multiprocessing, atexit and global data
问题 Sorry in advance, this is going to be long ... Possibly related: Python Multiprocessing atexit Error "Error in atexit._run_exitfuncs" Definitely related: python parallel map (multiprocessing.Pool.map) with global data Keyboard Interrupts with python's multiprocessing Pool Here's a "simple" script I hacked together to illustrate my problem... import time import multiprocessing as multi import atexit cleanup_stuff=multi.Manager().list([]) ################################################## #