Revert the shmget permission

Oops, a part of another patch was merged accidentally.  Reverted.
This commit is contained in:
Takashi Iwai 2005-05-19 14:20:07 +00:00
parent 5227c7e170
commit 13c7364997

View 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 */