summaryrefslogtreecommitdiff
path: root/logger.c
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2022-11-01 14:38:27 -0700
committerdormando <dormando@rydia.net>2022-11-01 22:22:55 -0700
commit875371a75cbf1f92350de2d1fa0fae4a35ed572b (patch)
treeed38925e6afd54c4564b330ee12b6aeb8f1c035a /logger.c
parent5d2da18808d50705f5038f304974d99f75c30f25 (diff)
downloadmemcached-875371a75cbf1f92350de2d1fa0fae4a35ed572b.tar.gz
core: give threads unique names
allow users to differentiate thread functions externally to memcached. Useful for setting priorities or pinning threads to CPU's.
Diffstat (limited to 'logger.c')
-rw-r--r--logger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/logger.c b/logger.c
index 6c949cb..a7f57b3 100644
--- a/logger.c
+++ b/logger.c
@@ -822,6 +822,7 @@ static int start_logger_thread(void) {
fprintf(stderr, "Can't start logger thread: %s\n", strerror(ret));
return -1;
}
+ thread_setname(logger_tid, "mc-log");
return 0;
}