Browse Source

Correct file permission for jack-shm-registry POSIX shared memory segment.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@2954 0c269be4-1314-0410-8aa9-9f06e86f4224
tags/1.90
sletz 15 years ago
parent
commit
285b645723
2 changed files with 13 additions and 4 deletions
  1. +7
    -3
      ChangeLog
  2. +6
    -1
      common/shm.c

+ 7
- 3
ChangeLog View File

@@ -23,15 +23,19 @@ Michael Voigt
Jackdmp changes log
---------------------------

2008-08-22 Stephane Letz <letz@grame.fr>
2008-10-02 Stephane Letz <letz@grame.fr>
* Correct file permission for jack-shm-registry POSIX shared memory segment.

2008-09-22 Stephane Letz <letz@grame.fr>
* Cleanup jack_port_id_t/jack_port_t mess, should work again on 64 bits machines."

2008-08-20 Stephane Letz <letz@grame.fr>
2008-09-20 Stephane Letz <letz@grame.fr>
* Michael Voigt JackAPI cleanup patch.

2008-08-19 Stephane Letz <letz@grame.fr>
2008-09-19 Stephane Letz <letz@grame.fr>
* Michael Voigt JackTime cleanup patch.



+ 6
- 1
common/shm.c View File

@@ -685,7 +685,7 @@ jack_create_registry (jack_shm_info_t *ri)
{
/* registry must be locked */
int shm_fd;
strncpy (registry_id, "/jack-shm-registry", sizeof (registry_id));

if ((shm_fd = shm_open (registry_id, O_RDWR|O_CREAT, 0666)) < 0) {
@@ -694,6 +694,11 @@ jack_create_registry (jack_shm_info_t *ri)
strerror (errno));
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));
}

/* Set the desired segment size. NOTE: the non-conformant Mac
* OS X POSIX shm only allows ftruncate() on segment creation.


Loading…
Cancel
Save