projects
/
profile
/
ivi
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9f2d6f
)
shm: don't complain about missing SHM segments
author
Lennart Poettering
<lennart@poettering.net>
Fri, 19 Feb 2010 02:29:36 +0000
(
03:29
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 21 Feb 2010 16:48:17 +0000
(17:48 +0100)
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.
src/pulsecore/shm.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/shm.c
b/src/pulsecore/shm.c
index
29849d5
..
5d5d85a
100644
(file)
--- 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;
}