summaryrefslogtreecommitdiffstats
path: root/src/global/signal_handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/global/signal_handler.cc')
-rw-r--r--src/global/signal_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/global/signal_handler.cc b/src/global/signal_handler.cc
index d3387267871..b8149718724 100644
--- a/src/global/signal_handler.cc
+++ b/src/global/signal_handler.cc
@@ -307,7 +307,7 @@ static void handle_oneshot_fatal_signal(int signum)
char buf[1024];
char pthread_name[16] = {0}; //limited by 16B include terminating null byte.
- int r = ceph_pthread_getname(pthread_self(), pthread_name, sizeof(pthread_name));
+ int r = ceph_pthread_getname(pthread_name, sizeof(pthread_name));
(void)r;
#if defined(__sun)
char message[SIG2STR_MAX];