From: Takashi Iwai Date: Thu, 19 May 2005 14:20:07 +0000 (+0000) Subject: Revert the shmget permission X-Git-Tag: v1.0.9rc4~14 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=13c736499732d0fdad3da2500fbcfee3eb63f0a3;p=alsa-lib.git Revert the shmget permission Oops, a part of another patch was merged accidentally. Reverted. --- diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c index 79315f08..38ea3d5c 100644 --- a/src/pcm/pcm_dmix.c +++ b/src/pcm/pcm_dmix.c @@ -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 */