Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/mpl/bind/dist/lib/isc prefixing lwp names with isc-...



details:   https://anonhg.NetBSD.org/src/rev/490392534ca1
branches:  trunk
changeset: 960955:490392534ca1
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Apr 03 22:20:26 2021 +0000

description:
prefixing lwp names with isc- adds no useful information and causes
truncation of the useful part.

diffstat:

 external/mpl/bind/dist/lib/isc/netmgr/netmgr.c |  4 ++--
 external/mpl/bind/dist/lib/isc/timer.c         |  4 ++--
 external/mpl/bind/dist/lib/isc/unix/socket.c   |  4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 4bd05c7897b7 -r 490392534ca1 external/mpl/bind/dist/lib/isc/netmgr/netmgr.c
--- a/external/mpl/bind/dist/lib/isc/netmgr/netmgr.c    Sat Apr 03 22:06:23 2021 +0000
+++ b/external/mpl/bind/dist/lib/isc/netmgr/netmgr.c    Sat Apr 03 22:20:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netmgr.c,v 1.4 2021/02/19 16:42:20 christos Exp $      */
+/*     $NetBSD: netmgr.c,v 1.5 2021/04/03 22:20:26 christos Exp $      */
 
 /*
  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -287,7 +287,7 @@
                mgr->workers_running++;
                isc_thread_create(nm_thread, &mgr->workers[i], &worker->thread);
 
-               snprintf(name, sizeof(name), "isc-net-%04zu", i);
+               snprintf(name, sizeof(name), "net-%zu", i);
                isc_thread_setname(worker->thread, name);
        }
 
diff -r 4bd05c7897b7 -r 490392534ca1 external/mpl/bind/dist/lib/isc/timer.c
--- a/external/mpl/bind/dist/lib/isc/timer.c    Sat Apr 03 22:06:23 2021 +0000
+++ b/external/mpl/bind/dist/lib/isc/timer.c    Sat Apr 03 22:20:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: timer.c,v 1.7 2021/02/19 16:42:19 christos Exp $       */
+/*     $NetBSD: timer.c,v 1.8 2021/04/03 22:20:26 christos Exp $       */
 
 /*
  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -716,7 +716,7 @@
        isc_mem_attach(mctx, &manager->mctx);
        isc_condition_init(&manager->wakeup);
        isc_thread_create(run, manager, &manager->thread);
-       isc_thread_setname(manager->thread, "isc-timer");
+       isc_thread_setname(manager->thread, "timer");
 
        *managerp = (isc_timermgr_t *)manager;
 
diff -r 4bd05c7897b7 -r 490392534ca1 external/mpl/bind/dist/lib/isc/unix/socket.c
--- a/external/mpl/bind/dist/lib/isc/unix/socket.c      Sat Apr 03 22:06:23 2021 +0000
+++ b/external/mpl/bind/dist/lib/isc/unix/socket.c      Sat Apr 03 22:20:26 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: socket.c,v 1.20 2021/02/22 01:31:51 christos Exp $     */
+/*     $NetBSD: socket.c,v 1.21 2021/04/03 22:20:26 christos Exp $     */
 
 /*
  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -3946,7 +3946,7 @@
                isc_thread_create(netthread, &manager->threads[i],
                                  &manager->threads[i].thread);
                char tname[1024];
-               sprintf(tname, "isc-socket-%d", i);
+               sprintf(tname, "sock-%d", i);
                isc_thread_setname(manager->threads[i].thread, tname);
        }
 



Home | Main Index | Thread Index | Old Index