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

@@ -19,10 +19,11 @@
  * CDDL HEADER END
  */
 
 /*
  * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2018 Joyent, Inc.
  * Copyright 2016 Argo Technologie SA.
  * Copyright (c) 2016-2017, Chris Fraire <cfraire@me.com>.
  */
 
 /*

@@ -455,10 +456,11 @@
                 if (err != 0)
                         goto done;
                 (void) pthread_attr_init(&attr);
                 (void) pthread_attr_setdetachstate(&attr,
                     PTHREAD_CREATE_DETACHED);
+                (void) pthread_attr_setname_np(&attr, "db_restore");
                 err = pthread_create(&tid, &attr, ipmgmt_db_restore_thread,
                     NULL);
                 (void) pthread_attr_destroy(&attr);
                 if (err != 0) {
                         (void) unlink(IPADM_VOL_DB_FILE);