1
1

configury: fix opal_config_pthreads when -lrt is set

the test program was successful without -pthread if -lrt is used.
-pthread *is* required in order to correctly handle
the pthread_atfork function.
Этот коммит содержится в:
Gilles Gouaillardet 2014-12-01 19:02:31 +09:00
родитель 960ef34988
Коммит 9d9d05b22d

Просмотреть файл

@ -58,6 +58,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);