Misc fixes and race condition cleaning

This commit is contained in:
Abramo Bagnara 2000-10-15 14:15:30 +00:00
parent 633815a591
commit d5c49aaa8e
6 changed files with 295 additions and 283 deletions

View file

@ -467,17 +467,7 @@ int pcm_shm_cmd(client_t *client)
}
case SND_PCM_IOCTL_MUNMAP:
{
size_t k;
ctrl->result = snd_pcm_munmap(pcm);
if (ctrl->result < 0)
break;
for (k = 0; k < pcm->mmap_info_count; ++k) {
snd_pcm_mmap_info_t *i = &pcm->mmap_info[k];
if (i->type == SND_PCM_MMAP_USER) {
int err = shmdt(i->addr);
assert(err >= 0);
}
}
break;
}
case SND_PCM_IOCTL_MMAP_FORWARD: