}
static void *close_thread(void *p) {
+ (void) pthread_setname_np(pthread_self(), "close");
+
assert_se(close_nointr(PTR_TO_FD(p)) != -EBADF);
return NULL;
}
static void * journal_file_set_offline_thread(void *arg) {
JournalFile *f = arg;
+ (void) pthread_setname_np(pthread_self(), "journal-offline");
+
journal_file_set_offline_internal(f);
return NULL;
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 {