Pavel Raiskup wrote:
> Thanks.  Minor report is that gl_thread_join() is not handled properly for
> joined thread statuses.
> 
> This leads to situation that Koji build system tries to gently terminate
> the build first (after two days) ... which (sometimes?) leads to successful
> 'test-lock' run in the end and the build succeeds too a bit later.

I cannot explain why this happens and how to fix it. If pthread_join would
report an error code, glthread_join would as well, and gl_thread_join would
abort the process, and 'make check' would fail:

# define glthread_join(THREAD, RETVALP) \
    (pthread_in_use () ? pthread_join (THREAD, RETVALP) : 0)

#define gl_thread_join(THREAD, RETVAL)     \
   do                                      \
     {                                     \
       if (glthread_join (THREAD, RETVAL)) \
         abort ();                         \
     }                                     \
   while (0)

Bruno


Reply via email to