aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/mhd_threads.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/microhttpd/mhd_threads.c')
-rw-r--r--src/microhttpd/mhd_threads.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/microhttpd/mhd_threads.c b/src/microhttpd/mhd_threads.c
index aa0ad571..3a63cff1 100644
--- a/src/microhttpd/mhd_threads.c
+++ b/src/microhttpd/mhd_threads.c
@@ -81,7 +81,8 @@ MHD_set_thread_name_ (const MHD_thread_ID_ thread_id,
81 * third argument is single argument for printf; 81 * third argument is single argument for printf;
82 * OSF1 use 3 arguments too, but last one always must be zero (NULL). 82 * OSF1 use 3 arguments too, but last one always must be zero (NULL).
83 * MHD doesn't use '%' in thread names, so both form are used in same way. 83 * MHD doesn't use '%' in thread names, so both form are used in same way.
84 */return ! pthread_setname_np (thread_id, thread_name, 0); 84 */
85 return ! pthread_setname_np (thread_id, thread_name, 0);
85#endif /* HAVE_PTHREAD_SETNAME_NP_NETBSD */ 86#endif /* HAVE_PTHREAD_SETNAME_NP_NETBSD */
86} 87}
87 88
@@ -311,7 +312,8 @@ MHD_create_named_thread_ (MHD_thread_handle_ID_ *thread,
311 * third argument is single argument for printf; 312 * third argument is single argument for printf;
312 * OSF1 use 3 arguments too, but last one always must be zero (NULL). 313 * OSF1 use 3 arguments too, but last one always must be zero (NULL).
313 * MHD doesn't use '%' in thread names, so both form are used in same way. 314 * MHD doesn't use '%' in thread names, so both form are used in same way.
314 */res = pthread_attr_setname_np (&attr, 315 */
316 res = pthread_attr_setname_np (&attr,
315 thread_name, 317 thread_name,
316 0); 318 0);
317#elif defined(HAVE_PTHREAD_ATTR_SETNAME_NP_IBMI) 319#elif defined(HAVE_PTHREAD_ATTR_SETNAME_NP_IBMI)