mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
dmix and other PCM plugins tries to open a secondary stream with O_APPEND flag when the shmem was already attached by another. However, when another streams have been already closed after the shmem check, this open may return the error EBADFD, since the kernel accepts O_APPEND only for the secondary streams. This patch adds a workaround for such a case. It just retries opening the stream as the first instance (i.e. without O_APPEND flag). This is basically safe behavior (the kernel takes care of races), even we may do this even unconditionally. But it's bad from the performance POV, so we do it only when really needed. Reported-by: Lars Lindqvist <lars.lindqvist@yandex.ru> Signed-off-by: Takashi Iwai <tiwai@suse.de> |
||
|---|---|---|
| .. | ||
| alisp | ||
| conf | ||
| control | ||
| hwdep | ||
| mixer | ||
| pcm | ||
| rawmidi | ||
| seq | ||
| timer | ||
| topology | ||
| ucm | ||
| async.c | ||
| conf.c | ||
| confmisc.c | ||
| dlmisc.c | ||
| error.c | ||
| input.c | ||
| Makefile.am | ||
| names.c | ||
| output.c | ||
| shmarea.c | ||
| socket.c | ||
| userfile.c | ||
| Versions.in | ||