http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52303
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jakub at gcc dot gnu.org
Resolution| |INVALID
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-18
10:00:31 UTC ---
That is not valid in POSIX, after fork from multi-threaded process (which is
any process that ever executed #pragma omp parallel too), POSIX lists just a
few functions that you may call after fork before you call _exit or exec*.
#pragma omp parallel is definitely not something you can do after fork from
multi-threaded programs.