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
+1 -1
View File
@@ -405,7 +405,7 @@ static void* thread_worker(void *p) {
assert_se(pthread_sigmask(SIG_BLOCK, &fullset, NULL) == 0);
/* Assign a pretty name to this thread */
(void) prctl(PR_SET_NAME, (unsigned long) "sd-resolve");
(void) pthread_setname_np(pthread_self(), "sd-resolve");
while (!resolve->dead) {
union {