mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 17:30:09 +08:00
4a7d599b64
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 .