mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
shm: don't complain about missing SHM segments
If two clients try to cleanup the SHM directory at the same time, they might want to open and then delete the same segment at the same time, in which case one client might win, the other one lose. In this case, don't warn about ENOENT.
This commit is contained in:
parent
f9f2d6f3e0
commit
c2079d792c
1 changed files with 1 additions and 1 deletions
|
|
@ -290,7 +290,7 @@ int pa_shm_attach_ro(pa_shm *m, unsigned id) {
|
||||||
segment_name(fn, sizeof(fn), m->id = id);
|
segment_name(fn, sizeof(fn), m->id = id);
|
||||||
|
|
||||||
if ((fd = shm_open(fn, O_RDONLY, 0)) < 0) {
|
if ((fd = shm_open(fn, O_RDONLY, 0)) < 0) {
|
||||||
if (errno != EACCES)
|
if (errno != EACCES && errno != ENOENT)
|
||||||
pa_log("shm_open() failed: %s", pa_cstrerror(errno));
|
pa_log("shm_open() failed: %s", pa_cstrerror(errno));
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue