From 1c40770e9d3a18d72a8672c54b3368b94bacdb1a Mon Sep 17 00:00:00 2001 From: sletz Date: Thu, 2 Oct 2008 08:54:03 +0000 Subject: [PATCH] Cleanup on OSX. git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2955 0c269be4-1314-0410-8aa9-9f06e86f4224 --- common/shm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/common/shm.c b/common/shm.c index 13a0c67f..35b67294 100644 --- a/common/shm.c +++ b/common/shm.c @@ -695,10 +695,10 @@ jack_create_registry (jack_shm_info_t *ri) return rc; } - /* Previous shm_open result depends of the actual value of umask, force correct file permisssion here */ - if (fchmod(shm_fd, 0666) < 0) { - jack_error ("Cannot chmod registry size (%s)", strerror (errno)); - } + /* Previous shm_open result depends of the actual value of umask, force correct file permisssion here */ + if (fchmod(shm_fd, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) < 0) { + jack_log("Cannot chmod jack-shm-registry (%s) %d %d", strerror (errno)); + } /* Set the desired segment size. NOTE: the non-conformant Mac * OS X POSIX shm only allows ftruncate() on segment creation.