Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
858486fc
Commit
858486fc
authored
Dec 10, 2015
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle pthread_setname_np() and variants correctly
Send your kudos to POSIX for failing to provide a standard here.
parent
c11fc5bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
cache_main.c
bin/varnishd/cache/cache_main.c
+6
-0
No files found.
bin/varnishd/cache/cache_main.c
View file @
858486fc
...
...
@@ -95,8 +95,14 @@ THR_SetName(const char *name)
#if defined(HAVE_PTHREAD_SET_NAME_NP)
pthread_set_name_np
(
pthread_self
(),
name
);
#elif defined(HAVE_PTHREAD_SETNAME_NP)
#if defined(__APPLE__)
pthread_setname_np
(
name
);
#elif defined(__NetBSD__)
pthread_setname_np
(
pthread_self
(),
"%s"
,
name
);
#else
pthread_setname_np
(
pthread_self
(),
name
);
#endif
#endif
}
const
char
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment