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.
  */
 
 #include <sys/ccompile.h>
 
 #include <stdlib.h>

@@ -656,10 +658,12 @@
         nscd_getent_context_t   *gctx, *c;
         nscd_getent_context_t   *first = NULL, *last = NULL;
         nss_getent_t            nssctx = { 0 };
         char                    *me = "reclaim_getent_ctx";
 
+        (void) thr_setname(thr_self(), me);
+
         /*CONSTCOND*/
         while (1) {
 
                 (void) sleep(60);
 

@@ -742,11 +746,12 @@
         /*NOTREACHED*/
         /*LINTED E_FUNC_HAS_NO_RETURN_STMT*/
 }
 
 static nscd_rc_t
-_nscd_init_getent_ctx_monitor() {
+_nscd_init_getent_ctx_monitor()
+{
 
         int     errnum;
         char    *me = "_nscd_init_getent_ctx_monitor";
 
         _NSCD_LOG(NSCD_LOG_GETENT_CTX, NSCD_LOG_LEVEL_DEBUG)