Skip to content

Topic

Fork safety

Whether a program's state stays usable after a Unix fork, given that locks, file descriptors and threads carried into the child can leave it deadlocked or mute.

Current clusters

build1 publisher

Forking mid-emit hands a worker a logging lock that stays taken

Python's logging module keeps an RLock behind every handler. One shared setup_logging() therefore deadlocks a forked pool on one machine and silently drops worker records on another, and a single-OS review only ever sees one of them.

Publishers:dev.to

Reality

Evidence58
Adoption
Insufficient
Hype gap+10
Incentives20
Confidence55