github-actions[bot] commented on code in PR #15893: URL: https://github.com/apache/doris/pull/15893#discussion_r1068936915
########## be/src/common/signal_handler.h: ########## @@ -307,7 +307,15 @@ void DumpSignalInfo(int signal_number, siginfo_t* siginfo) { formatter.AppendString(")"); formatter.AppendString(" received by PID "); formatter.AppendUint64(static_cast<uint64>(getpid()), 10); - formatter.AppendString(" (TID 0x"); + formatter.AppendString(" (TID "); + uint64_t tid; +#ifdef __APPLE__ + pthread_threadid_np(nullptr, &tid); +#else + tid = syscall(SYS_gettid); Review Comment: warning: use of undeclared identifier 'SYS_gettid' [clang-diagnostic-error] ```cpp tid = syscall(SYS_gettid); ^ ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org