From a3b9ae52258fb8e9aebadb4e5f67949c3fcb8d6f Mon Sep 17 00:00:00 2001 From: Amandeep Gautam Date: Wed, 27 Dec 2023 12:49:40 -0800 Subject: [PATCH] publish TID in 2 formats known formats on a crash --- src/signalhandler.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/signalhandler.cc b/src/signalhandler.cc index f53e68719..b3cfbbb5a 100644 --- a/src/signalhandler.cc +++ b/src/signalhandler.cc @@ -211,6 +211,8 @@ void DumpSignalInfo(int signal_number, siginfo_t *siginfo) { pthread_t id = pthread_self(); formatter.AppendUint64( reinterpret_cast(reinterpret_cast(id)), 16); + formatter.AppendString("/"); + formatter.AppendUint64(static_cast(GetTID(), 10)); formatter.AppendString(") "); // Only linux has the PID of the signal sender in si_pid. #ifdef GLOG_OS_LINUX