mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-30 01:06:56 +08:00
Mark Mentovai
4a7d599b64
mac: Scope crashpad_handler’s SIGTERM handler more broadly
Previously, there was a window after starting the upload thread but before the SIGTERM handler was installed, where receipt of SIGTERM could have interrupted an in-progress upload. There was also the possibility that a second SIGTERM sent after the exception handler stopped running would interrupt an in-progress upload. By pulling the signal handler out of ExceptionHandlerServer and into the main function, these races are avoided. BUG=crashpad:25 R=rsesek@chromium.org Review URL: https://codereview.chromium.org/1429353002 .
Description
Languages
C++
92.6%
Objective-C++
2.5%
C
2%
Python
1.7%
Assembly
0.9%
Other
0.3%