Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
@@ -19,10 +19,12 @@
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright 2018 Joyent, Inc.
*/
#ifdef SLP
/*
@@ -537,13 +539,16 @@
/*
* This is the ldap_cachemgr entry point into SLP dynamic discovery. The
* parameter 'r' should be a pointer to an unsigned int containing
* the requested interval at which the network should be queried.
*/
-void discover(void *r) {
+void
+discover(void *r) {
unsigned short reqrefresh = *((unsigned int *)r);
+ (void) pthread_setname_np(pthread_self(), "discover");
+
for (;;) {
find_all_contexts("ldap",
__cache_get_cfghandle,
__cache_aggregate_params,
__cache_set_cfghandle);