Skip to content

Commit 0e023d4

Browse files
committed
change linux shm file perm to 777
1 parent 6b6be31 commit 0e023d4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/libsharedmemory/libsharedmemory.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,9 @@ inline Error Memory::createOrOpen(const bool create)
491491

492492
const int flags = create ? (O_CREAT | O_RDWR) : O_RDWR;
493493

494-
_fd = shm_open(_path.c_str(), flags, 0755);
494+
_fd = shm_open(_path.c_str(), flags, 0777);
495+
fchmod(_fd, 0777); //explicit
496+
495497
if (_fd < 0)
496498
{
497499
if (create)

0 commit comments

Comments
 (0)