commit | 1116633926946af98159ebff6516f50ab9f6585b | [log] [tgz] |
---|---|---|
author | Justin Cohen <justincohen@google.com> | Tue Oct 19 13:53:37 2021 -0400 |
committer | Copybara-Service <copybara-worker@google.com> | Tue Oct 19 11:24:36 2021 -0700 |
tree | 952e754d720bdaffcb45220a212ac7e5229ce30c | |
parent | d9535a25935870420953b865287978d579acbc50 [diff] |
ios: Don't use POSIX file locks for iOS intermediate dumps. Instead use a custom mechanism based on the filename. Rather than a filename of <uuid>, instead name the file <bundle-id>|<uuid>[.locked]. A locked file will have the optional .locked extension. Files can be unlocked after writing an intermediate dump, or during initialization by looking for matching bundle-ids. Clients that call ProcessIntermediateDumps() will clean up any leftover locked intermediate dumps. Clients that never call ProcessIntermediateDumps, such as extensions that leave this up to the main application, will be cleaned up in a followup change. Bug: crashpad:31 Change-Id: Ifbacf2905136669195ee631460ae004d44c959ca Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3229429 Commit-Queue: Justin Cohen <justincohen@chromium.org> Reviewed-by: Mark Mentovai <mark@chromium.org> Reviewed-by: Rohit Rao <rohitrao@chromium.org> GitOrigin-RevId: c367128a856a7eb161f0db6a5a1dc5c8d9d16cd3
Crashpad is a crash-reporting system.
Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.