projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
595c22a
)
shm: minor modernizations
author
Lennart Poettering
<lennart@poettering.net>
Tue, 28 Apr 2009 23:49:22 +0000
(
01:49
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 28 Apr 2009 23:49:22 +0000
(
01:49
+0200)
src/pulsecore/shm.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/shm.c
b/src/pulsecore/shm.c
index fe556daac8fce929c844039f405cc7a73b619bc9..5b9e9604f112b354db495f54d8515877e9d06511 100644
(file)
--- a/
src/pulsecore/shm.c
+++ b/
src/pulsecore/shm.c
@@
-154,7
+154,7
@@
int pa_shm_create_rw(pa_shm *m, size_t size, pa_bool_t shared, mode_t mode) {
pa_atomic_store(&marker->pid, (int) getpid());
pa_atomic_store(&marker->marker, SHM_MARKER);
- pa_assert_se(close(fd) == 0);
+ pa_assert_se(
pa_
close(fd) == 0);
m->do_unlink = TRUE;
#else
return -1;
@@
-296,8
+296,8
@@
int pa_shm_attach_ro(pa_shm *m, unsigned id) {
goto fail;
}
- m->do_unlink =
0
;
- m->shared =
1
;
+ m->do_unlink =
FALSE
;
+ m->shared =
TRUE
;
pa_assert_se(pa_close(fd) == 0);