Commit 5d6c9654 authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #13964: daemon: guarantee exclusive shared memory segments

parent 92956e6a
......@@ -70,7 +70,7 @@ SHMSink::start()
return false;
}
const int flags = O_RDWR | O_CREAT | O_TRUNC;
const int flags = O_RDWR | O_CREAT | O_TRUNC | O_EXCL;
if (not shm_name_.empty()) {
fd_ = shm_open(shm_name_.c_str(), flags, perms_);
if (fd_ < 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment