Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
*** 19,29 ****
* CDDL HEADER END
*/
/*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
! * Copyright 2011 Joyent Inc.
*/
/*
* method.c - method execution functions
*
--- 19,29 ----
* CDDL HEADER END
*/
/*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
! * Copyright 2018 Joyent, Inc.
*/
/*
* method.c - method execution functions
*
*** 1113,1122 ****
--- 1113,1124 ----
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);