summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-02-19 03:29:36 +0100
committerLennart Poettering <lennart@poettering.net>2010-02-19 03:29:36 +0100
commitdfe27f623765b20bdaff2306109f89baca67d0cf (patch)
tree845a7c9821a5805886f1a41c0e9af16f32f1e40c
parent6e064d1d6d0292d230c752b1f41034fd0754487b (diff)
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.
-rw-r--r--src/pulsecore/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c
index fbf777a4..1e31d545 100644
--- a/src/pulsecore/shm.c
+++ b/src/pulsecore/shm.c
@@ -286,7 +286,7 @@ int pa_shm_attach_ro(pa_shm *m, unsigned id) {
segment_name(fn, sizeof(fn), m->id = id);
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));
goto fail;
}