mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 17:30:09 +08:00
131dd81d4c
pthread_threadid_np() reports an incorrect thread ID after fork() on macOS 10.14 (“Mojave”). See https://openradar.appspot.com/43843552. As a workaround, use thread_info(…, THREAD_IDENTIFIER_INFO, …). This uses MachThreadSelf(), which in turn uses pthread_mach_thread_np(), which does not suffer from the same bug. As an alternative, base::mac::ScopedMachSendRight(mach_thread_self()) could be used. Bug: crashpad:249 Change-Id: I757d6e94236cff533b9c1326f028110b6d214ee5 Reviewed-on: https://chromium-review.googlesource.com/c/1318271 Reviewed-by: Joshua Peraza <jperaza@chromium.org> Commit-Queue: Mark Mentovai <mark@chromium.org>