Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not set SHM_DEST on systems that do not support this non-standard mode. #6

Merged
merged 1 commit into from
Mar 12, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rct/SharedMemory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ bool SharedMemory::init(key_t key, int size, CreateMode mode)
memset(&ds, 0, sizeof(ds));
ds.shm_perm.uid = getuid();
ds.shm_perm.mode = 0600;
#ifndef OS_Darwin
#if !defined(OS_Darwin) && !defined(OS_FreeBSD)
ds.shm_perm.mode |= SHM_DEST;
#endif
const int ret = shmctl(mShm, IPC_SET, &ds);
Expand Down