Forking dangerous
TL;DR
Python 3.14+ now duplicates processes with spawn over fork
spawn duplicates the whole process space
fork clones the process but doesn’t duplicate the thread space
The following deadlocks (on linux, <py3.14)
import threading
import time
fro...
blog.danwald.me1 min read