BpfRingbuf.h - use exclusively locked map am: fbaa3c9890
Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/3134555 Change-Id: Id656098cce8011a54de1845f4af559ca450a1aaa Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
29d8156f7b
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ class BpfRingbuf : public BpfRingbufBase {
|
|||
|
||||
|
||||
inline base::Result<void> BpfRingbufBase::Init(const char* path) {
|
||||
mRingFd.reset(mapRetrieveRW(path));
|
||||
mRingFd.reset(mapRetrieveExclusiveRW(path));
|
||||
if (!mRingFd.ok()) {
|
||||
return android::base::ErrnoError()
|
||||
<< "failed to retrieve ringbuffer at " << path;
|
||||
|
|
|
|||
Loading…
Reference in a new issue