mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Fix bugs in the last change of ipc_gid option
- Fix semaphore gid control - Do semaphore discard for all semaphores (although currently defined as 1) - Fix the wrong check of return value from shmctl
This commit is contained in:
parent
270da603fd
commit
b69ab56881
2 changed files with 17 additions and 10 deletions
|
|
@ -87,7 +87,7 @@ retryshm:
|
|||
goto retryshm;
|
||||
return err;
|
||||
}
|
||||
if (!shmctl(dmix->u.dmix.shmid_sum, IPC_STAT, &buf)) {
|
||||
if (shmctl(dmix->u.dmix.shmid_sum, IPC_STAT, &buf) < 0) {
|
||||
err = -errno;
|
||||
shm_sum_discard(dmix);
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue