1
0

0001-use-pthread_join-instead-of-pthread_tryjoin_np.patch 338 B

1234567891011
  1. --- a/chunk-recover.c
  2. +++ b/chunk-recover.c
  3. @@ -887,7 +887,7 @@ static int scan_devices(struct recover_c
  4. for (i = 0; i < devidx; i++) {
  5. if (dev_scans[i].bytenr == -1)
  6. continue;
  7. - ret = pthread_tryjoin_np(t_scans[i],
  8. + ret = pthread_join(t_scans[i],
  9. (void **)&t_rets[i]);
  10. if (ret == EBUSY) {
  11. all_done = 0;