gh-100228: Warn from os.fork() if other threads exist. (#100229)
Not comprehensive, best effort warning. There are cases when threads exist on some platforms that this code cannot detect. macOS when API permissions allow and Linux with a readable /proc procfs present are the currently supported cases where a warning should show up reliably. Starting with a DeprecationWarning for now, it is less disruptive than something like RuntimeWarning and most likely to only be seen in people's CI tests - a good place to start with this messaging.
G
Gregory P. Smith committed
894f2c3c161933bd820ad322b3b678d89bc2377c
Parent: 2df82db
Committed by GitHub <noreply@github.com>
on 12/29/2022, 10:41:39 PM