summaryrefslogtreecommitdiff
path: root/usr/src/cmd/svc/startd/wait.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2018-10-15 14:57:13 +0000
committerJohn Levon <john.levon@joyent.com>2018-10-15 14:57:13 +0000
commitf5733417953d12d5f4b44353b59c3b14f13696c2 (patch)
tree3e8c4bc1ee61164386f7dfc70c4b8b760731d843 /usr/src/cmd/svc/startd/wait.c
parent8bd1e5ed2443eb501ddfba4147e769b6d0074ef3 (diff)
parentf35f236324c07bf560ad6481307ea93b1261d636 (diff)
downloadillumos-joyent-gcc-update.tar.gz
Merge remote-tracking branch 'ctf/OS-7275' into gcc-updategcc-update
Diffstat (limited to 'usr/src/cmd/svc/startd/wait.c')
-rw-r--r--usr/src/cmd/svc/startd/wait.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/cmd/svc/startd/wait.c b/usr/src/cmd/svc/startd/wait.c
index ebd83be10e..12856ff639 100644
--- a/usr/src/cmd/svc/startd/wait.c
+++ b/usr/src/cmd/svc/startd/wait.c
@@ -21,7 +21,8 @@
/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
- * Copyright 2012, Joyent, Inc. All rights reserved.
+ *
+ * Copyright 2018 Joyent, Inc.
*/
/*
@@ -252,6 +253,8 @@ wait_register(pid_t pid, const char *inst_fmri, int am_parent, int direct)
void *
wait_thread(void *args)
{
+ (void) pthread_setname_np(pthread_self(), "wait");
+
for (;;) {
port_event_t pe;
int fd;