mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
Revert the shmget permission
Oops, a part of another patch was merged accidentally. Reverted.
This commit is contained in:
parent
5227c7e170
commit
13c7364997
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ retryshm:
|
|||
err = -errno;
|
||||
if (dmix->u.dmix.shmid_sum < 0){
|
||||
if (errno == EINVAL)
|
||||
if ((tmpid = shmget(dmix->ipc_key + 1, 0, dmix->ipc_perm)) != -1)
|
||||
if ((tmpid = shmget(dmix->ipc_key + 1, 0, 0666)) != -1)
|
||||
if (!shmctl(tmpid, IPC_STAT, &buf))
|
||||
if (!buf.shm_nattch)
|
||||
/* no users so destroy the segment */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue