Message217347
multiprocessing.util.register_after_fork does not behave consistently on Windows because the `_afterfork_registry` is not transferred to the subprocess. The following example fails on Windows while it works perfectly on Linux:
import multiprocessing.util
def hook(*args):
print (args)
def func():
print ('func')
if __name__ == '__main__':
multiprocessing.util.register_after_fork(hook, hook)
p = multiprocessing.Process(target=func)
p.start() |
|
Date |
User |
Action |
Args |
2014-04-28 08:16:04 | schlamar | set | recipients:
+ schlamar |
2014-04-28 08:16:04 | schlamar | set | messageid: <1398672964.28.0.985951406539.issue21372@psf.upfronthosting.co.za> |
2014-04-28 08:16:04 | schlamar | link | issue21372 messages |
2014-04-28 08:16:03 | schlamar | create | |
|