summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-10-15 14:57:13 +0000
committerJohn Levon <john.levon@joyent.com>2018-10-15 14:57:13 +0000
commitf5733417953d12d5f4b44353b59c3b14f13696c2 (patch)
tree3e8c4bc1ee61164386f7dfc70c4b8b760731d843 /usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
parent8bd1e5ed2443eb501ddfba4147e769b6d0074ef3 (diff)
parentf35f236324c07bf560ad6481307ea93b1261d636 (diff)
downloadillumos-joyent-gcc-update.tar.gz
Merge remote-tracking branch 'ctf/OS-7275' into gcc-updategcc-update
Diffstat (limited to 'usr/src/cmd/ldapcachemgr/cachemgr_getldap.c')
-rw-r--r--usr/src/cmd/ldapcachemgr/cachemgr_getldap.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/cmd/ldapcachemgr/cachemgr_getldap.c b/usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
index 298e61fcb0..b9bc3f77b6 100644
--- a/usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
+++ b/usr/src/cmd/ldapcachemgr/cachemgr_getldap.c
@@ -20,6 +20,8 @@
*/
/*
* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
+ *
+ * Copyright 2018 Joyent, Inc.
*/
#include <assert.h>
@@ -1631,6 +1633,8 @@ getldap_serverInfo_op(info_op_t op, char *input, char **output)
static time_t prev_refresh = 0, next_refresh = 0;
ns_server_status_t changed = 0;
+ (void) pthread_setname_np(pthread_self(), "getldap_serverinfo");
+
if (current_admin.debug_level >= DBG_ALL) {
logit("getldap_serverInfo_op()...\n");
}
@@ -2542,6 +2546,8 @@ getldap_refresh()
int sig_done = 0;
int dbg_level;
+ (void) pthread_setname_np(pthread_self(), "getldap_refresh");
+
if (current_admin.debug_level >= DBG_ALL) {
logit("getldap_refresh()...\n");
}
@@ -2892,6 +2898,8 @@ remove_server_thread(void *arg)
int up;
rm_svr_t rms;
+ (void) pthread_setname_np(pthread_self(), "remove_server");
+
up = contact_server(addr);
rms.addr = addr;