This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author schlamar
Recipients schlamar
Date 2014-04-28.08:16:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1398672964.28.0.985951406539.issue21372@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2014-04-28 08:16:04schlamarsetrecipients: + schlamar
2014-04-28 08:16:04schlamarsetmessageid: <1398672964.28.0.985951406539.issue21372@psf.upfronthosting.co.za>
2014-04-28 08:16:04schlamarlinkissue21372 messages
2014-04-28 08:16:03schlamarcreate