diff options
author | John Levon <john.levon@joyent.com> | 2018-10-15 14:57:13 +0000 |
---|---|---|
committer | John Levon <john.levon@joyent.com> | 2018-10-15 14:57:13 +0000 |
commit | f5733417953d12d5f4b44353b59c3b14f13696c2 (patch) | |
tree | 3e8c4bc1ee61164386f7dfc70c4b8b760731d843 /usr/src/cmd/ldapcachemgr/cachemgr_change.c | |
parent | 8bd1e5ed2443eb501ddfba4147e769b6d0074ef3 (diff) | |
parent | f35f236324c07bf560ad6481307ea93b1261d636 (diff) | |
download | illumos-joyent-gcc-update.tar.gz |
Merge remote-tracking branch 'ctf/OS-7275' into gcc-updategcc-update
Diffstat (limited to 'usr/src/cmd/ldapcachemgr/cachemgr_change.c')
-rw-r--r-- | usr/src/cmd/ldapcachemgr/cachemgr_change.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/src/cmd/ldapcachemgr/cachemgr_change.c b/usr/src/cmd/ldapcachemgr/cachemgr_change.c index 85a15a1054..727851ffbc 100644 --- a/usr/src/cmd/ldapcachemgr/cachemgr_change.c +++ b/usr/src/cmd/ldapcachemgr/cachemgr_change.c @@ -21,6 +21,8 @@ /* * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. + * + * Copyright 2018 Joyent, Inc. */ #include <strings.h> @@ -33,6 +35,7 @@ #include <sys/stat.h> #include <fcntl.h> #include <procfs.h> +#include <pthread.h> #include "cachemgr.h" extern admin_t current_admin; @@ -535,6 +538,8 @@ chg_cleanup_waiting_threads(void *arg) pid_t pid; int always = 1, waiting; + (void) pthread_setname_np(pthread_self(), "chg_cleanup_thr"); + if (op == NULL) { waiting = 1; type = CLEANUP_ALL; |