Message289908
I don't know your patch is worth enough or not. (I dislike fprintf(stderr, ...) at least).
But my advice is stop mixing multithreading and fork (except fork+exec).
It's almost impossible.
While Python has GIL, some extension can release GIL and run any C code.
But very vary functions are not fork-safe. Even malloc and printf are unsafe.
For more information, see "rational" section in
http://pubs.opengroup.org/onlinepubs/009695399/functions/pthread_atfork.html |
|
Date |
User |
Action |
Args |
2017-03-21 02:41:21 | methane | set | recipients:
+ methane, Birne94 |
2017-03-21 02:41:21 | methane | set | messageid: <1490064081.76.0.885430483314.issue29859@psf.upfronthosting.co.za> |
2017-03-21 02:41:21 | methane | link | issue29859 messages |
2017-03-21 02:41:20 | methane | create | |
|