Merge pull request #1820 from michich/errno-v2

[v2] treewide: treatment of errno and other cleanups
This commit is contained in:
Daniel Mack
2015-11-09 21:56:49 +01:00
45 changed files with 180 additions and 231 deletions
+2 -6
View File
@@ -584,12 +584,8 @@ static void resolve_free(sd_resolve *resolve) {
}
/* Now terminate them and wait until they are gone. */
for (i = 0; i < resolve->n_valid_workers; i++) {
for (;;) {
if (pthread_join(resolve->workers[i], NULL) != EINTR)
break;
}
}
for (i = 0; i < resolve->n_valid_workers; i++)
pthread_join(resolve->workers[i], NULL);
/* Close all communication channels */
for (i = 0; i < _FD_MAX; i++)