Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
@@ -19,11 +19,11 @@
* CDDL HEADER END
*/
/*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
- * Copyright 2011 Joyent Inc.
+ * Copyright 2018 Joyent, Inc.
*/
/*
* method.c - method execution functions
*
@@ -1113,10 +1113,12 @@
scf_instance_t *s_inst = NULL;
int r, exit_code;
boolean_t retryable;
restarter_str_t reason;
+ (void) pthread_setname_np(pthread_self(), "method");
+
assert(0 <= info->sf_method_type && info->sf_method_type <= 2);
/* Get (and lock) the restarter_inst_t. */
inst = inst_lookup_by_id(info->sf_id);