diff options
Diffstat (limited to 'usr/src/cmd/nscd/nscd_smfmonitor.c')
-rw-r--r-- | usr/src/cmd/nscd/nscd_smfmonitor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/cmd/nscd/nscd_smfmonitor.c b/usr/src/cmd/nscd/nscd_smfmonitor.c index bd2ff958ba..5cd179a8e2 100644 --- a/usr/src/cmd/nscd/nscd_smfmonitor.c +++ b/usr/src/cmd/nscd/nscd_smfmonitor.c @@ -21,11 +21,14 @@ /* * Copyright 2008 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * + * Copyright 2018 Joyent, Inc. */ #include <stdlib.h> #include <libscf.h> #include <string.h> +#include <pthread.h> #include "nscd_switch.h" #include "nscd_log.h" #include "nscd_door.h" @@ -107,6 +110,8 @@ set_smf_state(void *arg) int i; int st; + (void) pthread_setname_np(pthread_self(), "set_smf_state"); + /* * the forker nscd needs not monitor the state * of the client services |