]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Revert the shmget permission
authorTakashi Iwai <tiwai@suse.de>
Thu, 19 May 2005 14:20:07 +0000 (14:20 +0000)
committerTakashi Iwai <tiwai@suse.de>
Thu, 19 May 2005 14:20:07 +0000 (14:20 +0000)
Oops, a part of another patch was merged accidentally.  Reverted.

src/pcm/pcm_dmix.c

index 79315f089b1a5785a65678c114ec3194486c0e52..38ea3d5cc7d9e3b4eaa8862dca7b4fe125d44246 100644 (file)
@@ -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 */