Browse Source

Cleanup on OSX.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2955 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.90
sletz 16 years ago
parent
commit
1c40770e9d
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      common/shm.c

+ 4
- 4
common/shm.c View File

@@ -695,10 +695,10 @@ jack_create_registry (jack_shm_info_t *ri)
return rc; 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 /* Set the desired segment size. NOTE: the non-conformant Mac
* OS X POSIX shm only allows ftruncate() on segment creation. * OS X POSIX shm only allows ftruncate() on segment creation.


Loading…
Cancel
Save