Barry A. Warsaw <ba...@python.org> added the comment:

I have a reliable way to call *something* in the pthread_atfork prepare 
handler, but I honestly don't know what to call to prevent the crash.

In the Ruby thread, it seemed to say that you could just dlopen 
/System/Library/Frameworks/Foundation.framework/Foundation but that does not 
work for me.  Neither does also loading the CoreFoundation and 
SystemConfiguration frameworks.

If anybody has something that will reliably initialize the runtime, I can post 
my approach (there are a few subtleties).  Short of that, I think there's 
nothing that can be done except ensure that exec is called right after fork.

----------

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

Reply via email to