From 2aafa802a9d564a1caacbf3a85fc2a0aa9e5d158 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sat, 19 Nov 2022 02:45:18 -0500 Subject: [PATCH] task: increase saved thread name length to 64 24 bytes seems a little low. 64 is a rounder (and more square) number. Signed-off-by: Zygo Blaxell --- lib/task.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/task.cc b/lib/task.cc index ba18ab8..dbcb68f 100644 --- a/lib/task.cc +++ b/lib/task.cc @@ -300,7 +300,7 @@ namespace crucible { swap(this_task, tl_current_task); lock.unlock(); - char buf[24] = { 0 }; + char buf[64] = { 0 }; DIE_IF_MINUS_ERRNO(pthread_getname_np(pthread_self(), buf, sizeof(buf))); DIE_IF_MINUS_ERRNO(pthread_setname_np(pthread_self(), m_title.c_str()));