Gregory P. Smith <g...@krypto.org> added the comment:

A stdlib alternative to this whole mess would be to avoid acquiring the logging 
locks before fork() as we currently do and just blindly re-initialize all of 
them afterwards under the assumption that they "can't" be protecting anything 
in a newly forked child process.  Handlers that need specific resource 
synchronization around fork would then be required to deal with their own 
os.register_at_fork() calls.  (ex: to avoid multiple processes writing to the 
same file or fd at once)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue36533>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to