Relevant line of prelude.c is: ret = glthread_atfork(prelude_fork_prepare, prelude_fork_parent, prelude_fork_child);
libmissing defines glthread_atfork() to pthread_atfork() if available, and this has been correctly detected. So glthread_atfork() expands as:
# define glthread_atfork(PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) \ (pthread_in_use () ? pthread_atfork (PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) : 0)
(pthread_in_use() evaluates true at build time)
Not seeing any obvious bugs in the threads handling.
Relevant line of prelude.c is: atfork( prelude_ fork_prepare, prelude_ fork_parent, prelude_ fork_child) ;
ret = glthread_
libmissing defines glthread_atfork() to pthread_atfork() if available, and this has been correctly detected. So glthread_atfork() expands as:
# define glthread_ atfork( PREPARE_ FUNC, PARENT_FUNC, CHILD_FUNC) \ in_use () ? pthread_atfork (PREPARE_FUNC, PARENT_FUNC, CHILD_FUNC) : 0)
(pthread_
(pthread_in_use() evaluates true at build time)
Not seeing any obvious bugs in the threads handling.