diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-02-19 03:29:36 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-02-21 17:48:17 +0100 |
commit | c2079d792c0eb8d2cbb8fdfcfc58302842a0a2d2 (patch) | |
tree | 71f6320ac85ec52b21a5d5869f23ccd2f743cf92 /src/pulsecore | |
parent | f9f2d6f3e0f9dfa310c7cd29bb06b8b52a0c8a1c (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.
Diffstat (limited to 'src/pulsecore')
-rw-r--r-- | src/pulsecore/shm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulsecore/shm.c b/src/pulsecore/shm.c index 29849d57..5d5d85ab 100644 --- a/src/pulsecore/shm.c +++ b/src/pulsecore/shm.c @@ -290,7 +290,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; } |