1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-12 13:18:14 +03:00

sd-resolve: ignore error in pthread_join()

CID #1338424.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2016-04-08 21:08:42 -04:00
parent 94edd38e1d
commit 9d4e7d1380

View File

@ -579,9 +579,10 @@ static void resolve_free(sd_resolve *resolve) {
(void) send(resolve->fds[REQUEST_SEND_FD], &req, req.length, MSG_NOSIGNAL);
}
/* Now terminate them and wait until they are gone. */
/* Now terminate them and wait until they are gone.
If we get an error than most likely the thread already exited. */
for (i = 0; i < resolve->n_valid_workers; i++)
pthread_join(resolve->workers[i], NULL);
(void) pthread_join(resolve->workers[i], NULL);
/* Close all communication channels */
for (i = 0; i < _FD_MAX; i++)