diff --git a/config/ompi_config_pthreads.m4 b/config/ompi_config_pthreads.m4 index 3f073d8c0d..b70c115df7 100644 --- a/config/ompi_config_pthreads.m4 +++ b/config/ompi_config_pthreads.m4 @@ -57,6 +57,7 @@ int main(int argc, char* argv[]) pthread_attr_t attr; me = pthread_self(); + pthread_atfork(NULL, NULL, NULL); pthread_attr_init(&attr); pthread_cleanup_push(cleanup_routine, 0); pthread_create(&newthread, &attr, thread_main, 0);