Use flock() on Android
The hope is that this will fix crash reports coming in with all 0
client ids.
Android was switched to O_EXCL lockfiles in crashpad bce9a58c66a1
("Fix locking on certain Android partitions") to work around test
devices that wrote to /sdcard. However, production databases live in the
app's cache directory, which supports flock(), and the tests seem to no
longer require this.
Bug: 293610799
Change-Id: I09290182f68140f72cccdf75bc7171717c5308c8
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/8658859
Reviewed-by: Justin Cohen <justincohen@google.com>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Crashpad is a crash-reporting system.
Crashpad’s source code is hosted in a Git repository at https://chromium.googlesource.com/crashpad/crashpad.