Richard Oudkerk added the comment:

Attached is a patch which allows the use of separate contexts.  For example

    try:
        ctx = multiprocessing.get_context('forkserver')
    except ValueError:
        ctx = multiprocessing.get_context('spawn')

    q = ctx.Queue()
    p = ctx.Process(target=foo, args=(q,))
    p.start()
    ...

Also, get_start_method(allow_none=True) will return None if the start method 
has not yet been fixed.

----------
Added file: http://bugs.python.org/file32034/context.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18999>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to