From bc0a86eb8dfc0ad1e352c899a99a3adbcbf385ff Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Fri, 8 Sep 2017 22:08:27 +0200 Subject: [PATCH] Mention fork() --- pep-0556.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pep-0556.rst b/pep-0556.rst index b5cbcc087..23f04aff1 100644 --- a/pep-0556.rst +++ b/pep-0556.rst @@ -337,6 +337,10 @@ is currently guaranteed that finalizers will always be called in the main thread. Breaking this property may induce subtle behaviour changes or bugs, for example if finalizers rely on some thread-local values. +Another problem is when a program uses ``fork()`` for concurrency. +Calling ``fork()`` from a single-threaded program is safe, +but it's fragile (to say the least) if the program is multi-threaded. + Explicit collections --------------------