[Python-Dev] PEP 446: Open issues/questions

Richard Oudkerk shibturn at gmail.com
Fri Aug 2 14:07:53 CEST 2013


On 02/08/2013 12:30pm, Victor Stinner wrote:
> Is it possible to implement atfork on Windows?

On Windows the patch does expose atfork.getlock() and uses it in 
subprocess.  (It should also modify os.spawn?(), os.startfile() etc.) 
But atfork.atfork() is Unix only.

> A Python lock would be ignored by other C threads. It is unsafe if
> Python is embedded.

True.

-- 
Richard



More information about the Python-Dev mailing list