diff options
Diffstat (limited to 'src/microhttpd/daemon.c')
-rw-r--r-- | src/microhttpd/daemon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 14786042..e4d4e913 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -1283,7 +1283,8 @@ create_thread (MHD_thread_handle_ *thread, | |||
1283 | ret = pthread_create (thread, pattr, | 1283 | ret = pthread_create (thread, pattr, |
1284 | start_routine, arg); | 1284 | start_routine, arg); |
1285 | #ifdef HAVE_PTHREAD_SETNAME_NP | 1285 | #ifdef HAVE_PTHREAD_SETNAME_NP |
1286 | (void) pthread_setname_np (*thread, "libmicrohttpd"); | 1286 | if (0 == ret) |
1287 | (void) pthread_setname_np (*thread, "libmicrohttpd"); | ||
1287 | #endif /* HAVE_PTHREAD_SETNAME_NP */ | 1288 | #endif /* HAVE_PTHREAD_SETNAME_NP */ |
1288 | if (0 != daemon->thread_stack_size) | 1289 | if (0 != daemon->thread_stack_size) |
1289 | pthread_attr_destroy (&attr); | 1290 | pthread_attr_destroy (&attr); |