tree-wide: properly name all threads we fork off

This commit is contained in:
Lennart Poettering
2017-12-25 11:48:21 +01:00
parent 451cdf7830
commit fa7ff4cf03
3 changed files with 5 additions and 1 deletions
+2
View File
@@ -81,6 +81,8 @@ int asynchronous_sync(pid_t *ret_pid) {
}
static void *close_thread(void *p) {
(void) pthread_setname_np(pthread_self(), "close");
assert_se(close_nointr(PTR_TO_FD(p)) != -EBADF);
return NULL;
}