diff --git a/df/parallel.c b/df/parallel.c index 047735ef3..6d2e1cffb 100644 --- a/df/parallel.c +++ b/df/parallel.c @@ -33,6 +33,8 @@ #include #endif +#include "ignore-value.h" + #include "guestfs.h" #include "guestfs-internal-frontend.h" #include "options.h" @@ -224,6 +226,7 @@ worker_thread (void *thread_data_vp) if (err != 0) { thread_failure ("pthread_cond_wait", err); thread_data->r = -1; + ignore_value (pthread_mutex_unlock (&retire_mutex)); return &thread_data->r; } }