aboutsummaryrefslogtreecommitdiff
path: root/zencore/thread.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2022-02-14 08:38:27 +0100
committerMartin Ridgers <[email protected]>2022-02-14 08:38:27 +0100
commit717cca4286ab0033e6ede5fded33d7418789f268 (patch)
tree5adc946781095c0aa3d9effc4e9c1cdc5f70db82 /zencore/thread.cpp
parentAllow all users to access the backing file for named mutexs (diff)
downloadzen-717cca4286ab0033e6ede5fded33d7418789f268.tar.xz
zen-717cca4286ab0033e6ede5fded33d7418789f268.zip
Write access for all users to named event files on POSIX
Diffstat (limited to 'zencore/thread.cpp')
-rw-r--r--zencore/thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/zencore/thread.cpp b/zencore/thread.cpp
index 1f872afe1..33ea3e95d 100644
--- a/zencore/thread.cpp
+++ b/zencore/thread.cpp
@@ -270,7 +270,7 @@ NamedEvent::NamedEvent(std::string_view EventName)
ExtendableStringBuilder<64> EventPath;
EventPath << "/tmp/" << EventName;
- int Fd = open(EventPath.c_str(), O_RDWR | O_CREAT, 0644);
+ int Fd = open(EventPath.c_str(), O_RDWR | O_CREAT, 0666);
if (Fd < 0)
{
ThrowLastError(fmt::format("Failed to create '{}' for named event", EventPath));