Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section

@@ -19,10 +19,12 @@
  * CDDL HEADER END
  */
 /*
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
+ *
+ * Copyright 2018 Joyent, Inc.
  */
 
 #include <stdlib.h>
 #include <libscf.h>
 #include <string.h>

@@ -105,10 +107,12 @@
 {
 
         int     i;
         int     st;
 
+        (void) thr_setname(thr_self(), "set_smf_state");
+
         /*
          * the forker nscd needs not monitor the state
          * of the client services
          */
         if (_whoami == NSCD_FORKER)