libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit ccdf83cd04e734fafa2beed207cb523af8783961
parent 1c553e71a97ebf78f251f70dda761d469c53fba9
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun, 14 Jul 2013 17:38:24 +0000

name MHD worker threads

Diffstat:
MChangeLog | 3+++
Msrc/microhttpd/daemon.c | 3+++
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,6 @@ +Sun Jul 14 19:37:37 CEST 2013 + Name MHD worker threads on glibc >= 2.12. -,L4X[o](B + Fri Jul 5 12:05:01 CEST 2013 Added MHD_OPTION_CONNECTION_MEMORY_INCREMENT to allow users to specify a custom value for incrementing read buffer diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c @@ -939,6 +939,9 @@ create_thread (pthread_t *thread, } ret = pthread_create (thread, pattr, start_routine, arg); +#if (__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 12) + (void) pthread_setname_np (*thread, "libmicrohttpd"); +#endif if (0 != daemon->thread_stack_size) pthread_attr_destroy (&attr); return ret;