Skip to content

Commit

Permalink
publish TID in 2 formats known formats on a crash
Browse files Browse the repository at this point in the history
  • Loading branch information
amandeepgautam committed Dec 28, 2023
1 parent e92ab7d commit 7423db0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/signalhandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ void DumpSignalInfo(int signal_number, siginfo_t *siginfo) {
pthread_t id = pthread_self();
formatter.AppendUint64(
reinterpret_cast<uint64>(reinterpret_cast<const char*>(id)), 16);
formatter.AppendString("/");
formatter.AppendUint64(static_cast<uint64>(GetTID()), 10);
formatter.AppendString(") ");
// Only linux has the PID of the signal sender in si_pid.
#ifdef GLOG_OS_LINUX
Expand Down

0 comments on commit 7423db0

Please sign in to comment.