aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-07-14 17:38:24 +0000
committerChristian Grothoff <christian@grothoff.org>2013-07-14 17:38:24 +0000
commitccdf83cd04e734fafa2beed207cb523af8783961 (patch)
treebf05d2893b2ffd0e29cb63985285c1034a8598db
parent1c553e71a97ebf78f251f70dda761d469c53fba9 (diff)
downloadlibmicrohttpd-ccdf83cd04e734fafa2beed207cb523af8783961.tar.gz
libmicrohttpd-ccdf83cd04e734fafa2beed207cb523af8783961.zip
name MHD worker threads
-rw-r--r--ChangeLog3
-rw-r--r--src/microhttpd/daemon.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b854a7e4..d8593245 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
1Sun Jul 14 19:37:37 CEST 2013
2 Name MHD worker threads on glibc >= 2.12. -,L4X[o](B
3
1Fri Jul 5 12:05:01 CEST 2013 4Fri Jul 5 12:05:01 CEST 2013
2 Added MHD_OPTION_CONNECTION_MEMORY_INCREMENT to allow users 5 Added MHD_OPTION_CONNECTION_MEMORY_INCREMENT to allow users
3 to specify a custom value for incrementing read buffer 6 to specify a custom value for incrementing read buffer
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;