Comment 1 for bug 1262430

Revision history for this message
Steve Langasek (vorlon) wrote : Re: libprelude FTBFS on ppc64el, segfaults in testsuite

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.