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

@@ -22,11 +22,11 @@
 /*
  * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 /*
- * Copyright 2016 Joyent, Inc.
+ * Copyright 2018 Joyent, Inc.
  */
 
 #include "lint.h"
 #include "thr_uberdata.h"
 

@@ -126,11 +126,11 @@
             ap->prio < pccp->pcc_primin || ap->prio > pccp->pcc_primax))
                 return (EINVAL);
 
         flag = ap->scope | ap->detachstate | ap->daemonstate | THR_SUSPENDED;
         error = _thrp_create(ap->stkaddr, ap->stksize, start_routine, arg,
-            flag, &tid, ap->guardsize);
+            flag, &tid, ap->guardsize, ap->name);
         if (error == 0) {
                 /*
                  * Record the original inheritence value for
                  * pthread_getattr_np(). We should always be able to find the
                  * thread.