shorten names

This commit is contained in:
christos 2019-11-16 19:23:56 +00:00
parent f6972e2244
commit 58617a0201
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: task.c,v 1.5 2019/09/05 19:32:59 christos Exp $ */
/* $NetBSD: task.c,v 1.6 2019/11/16 19:23:56 christos Exp $ */
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@ -1385,7 +1385,7 @@ isc_taskmgr_create(isc_mem_t *mctx, unsigned int workers,
&manager->queues[i].thread)
== ISC_R_SUCCESS);
char name[21];
snprintf(name, sizeof(name), "isc-worker%04u", i);
snprintf(name, sizeof(name), "work-%u", i);
isc_thread_setname(manager->queues[i].thread, name);
}
UNLOCK(&manager->lock);

View File

@ -1,4 +1,4 @@
/* $NetBSD: timer.c,v 1.4 2019/02/24 20:01:31 christos Exp $ */
/* $NetBSD: timer.c,v 1.5 2019/11/16 19:23:56 christos Exp $ */
/*
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@ -725,7 +725,7 @@ isc_timermgr_create(isc_mem_t *mctx, isc_timermgr_t **managerp) {
"isc_thread_create() failed");
return (ISC_R_UNEXPECTED);
}
isc_thread_setname(manager->thread, "isc-timer");
isc_thread_setname(manager->thread, "timer");
*managerp = (isc_timermgr_t *)manager;