[Bug libgomp/58378] Protect libgomp against child process hanging after a Unix fork()

olivier.grisel at ensta dot org gcc-bugzilla@gcc.gnu.org
Tue Sep 10 10:51:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58378

--- Comment #4 from Olivier Grisel <olivier.grisel at ensta dot org> ---
Thanks for the explanation. Would you consider a solution that would preserve
the state of the parent process and would just reset the thread pool data on
the child?

Otherwise we will have to consider that the way fork() is used in Python's
multiprocessing module is really an abuse and that there is no way to safely
use both openmp-libraries and Python multiprocessing in the same program
safely.



More information about the Gcc-bugs mailing list