tree-wide: properly name all threads we fork off
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user