From f5c78d345470b2196c4abfd8e84dbb0ca905abc8 Mon Sep 17 00:00:00 2001 From: Bo Bayles Date: Sat, 24 Feb 2018 08:23:47 -0600 Subject: [PATCH 1/2] bpo-32146: Warn about frozen executables on Unix --- Doc/library/multiprocessing.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 8b3081cb80c972..949c07dbbac5b0 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -186,6 +186,13 @@ A library which wants to use a particular start method should probably use :func:`get_context` to avoid interfering with the choice of the library user. +.. warning:: + + The ``'spawn'`` and ``'forkserver'`` start methods cannot currently + be used with "frozen" executables (i.e., binaries produced by + packages like **PyInstaller** and **cx_Freeze**) on Unix. + The ``'fork'`` start method does work. + Exchanging objects between processes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From be4e16696d2ca876f5b74b421b4b63af0a918f77 Mon Sep 17 00:00:00 2001 From: Bo Bayles Date: Sun, 25 Feb 2018 10:17:40 -0600 Subject: [PATCH 2/2] bpo-32146: Add NEWS entry --- .../next/Library/2018-02-25-10-17-23.bpo-32146.xOzUFW.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2018-02-25-10-17-23.bpo-32146.xOzUFW.rst diff --git a/Misc/NEWS.d/next/Library/2018-02-25-10-17-23.bpo-32146.xOzUFW.rst b/Misc/NEWS.d/next/Library/2018-02-25-10-17-23.bpo-32146.xOzUFW.rst new file mode 100644 index 00000000000000..f071c7101806b3 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-02-25-10-17-23.bpo-32146.xOzUFW.rst @@ -0,0 +1,2 @@ +Document the interaction between frozen executables and the spawn and +forkserver start methods in multiprocessing.