diff options
| author | Jason King <jason.brian.king@gmail.com> | 2017-05-05 22:58:26 +0000 |
|---|---|---|
| committer | John Levon <john.levon@joyent.com> | 2018-10-12 15:51:25 +0000 |
| commit | b267fa2867fd98d2f8864fd82efc8ad4b2276f39 (patch) | |
| tree | 0cd175551d1706e0111fb4ee2b36ca0e82d6699a /usr/src/cmd/svc/startd/method.c | |
| parent | 789cf136e86bd7243b6ffd90333a23ba74b898e3 (diff) | |
| download | illumos-joyent-b267fa2867fd98d2f8864fd82efc8ad4b2276f39.tar.gz | |
OS-7200 would like thread name API
OS-7205 bhyve makefile uses wrong linker flags
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Jason King <jason.king@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Approved by: Patrick Mooney <patrick.mooney@joyent.com>
Diffstat (limited to 'usr/src/cmd/svc/startd/method.c')
| -rw-r--r-- | usr/src/cmd/svc/startd/method.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr/src/cmd/svc/startd/method.c b/usr/src/cmd/svc/startd/method.c index c3cd0144c1..1d8ffaa2b6 100644 --- a/usr/src/cmd/svc/startd/method.c +++ b/usr/src/cmd/svc/startd/method.c @@ -21,7 +21,7 @@ /* * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. - * Copyright 2012 Joyent, Inc. All rights reserved. + * Copyright 2018 Joyent, Inc. */ /* @@ -1135,6 +1135,8 @@ method_thread(void *arg) 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. */ |
