diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 41013db5..ea4c0538 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -939,6 +939,9 @@ create_thread (pthread_t *thread, | |||
939 | } | 939 | } |
940 | ret = pthread_create (thread, pattr, | 940 | ret = pthread_create (thread, pattr, |
941 | start_routine, arg); | 941 | start_routine, arg); |
942 | #if (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) | ||
943 | (void) pthread_setname_np (*thread, "libmicrohttpd"); | ||
944 | #endif | ||
942 | if (0 != daemon->thread_stack_size) | 945 | if (0 != daemon->thread_stack_size) |
943 | pthread_attr_destroy (&attr); | 946 | pthread_attr_destroy (&attr); |
944 | return ret; | 947 | return ret; |