[pulseaudio-commits] r1281 - /trunk/src/pulsecore/shm.c
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Fri Aug 18 18:15:23 PDT 2006
Author: lennart
Date: Sat Aug 19 03:15:22 2006
New Revision: 1281
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1281&root=pulseaudio&view=rev
Log:
fix allocation of anonymous memory
Modified:
trunk/src/pulsecore/shm.c
Modified: trunk/src/pulsecore/shm.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/pulsecore/shm.c?rev=1281&root=pulseaudio&r1=1280&r2=1281&view=diff
==============================================================================
--- trunk/src/pulsecore/shm.c (original)
+++ trunk/src/pulsecore/shm.c Sat Aug 19 03:15:22 2006
@@ -60,7 +60,7 @@
m->size = size;
#ifdef MAP_ANONYMOUS
- if ((m->ptr = mmap(NULL, m->size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS, fd, 0)) == MAP_FAILED) {
+ if ((m->ptr = mmap(NULL, m->size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0)) == MAP_FAILED) {
pa_log("mmap() failed: %s", pa_cstrerror(errno));
goto fail;
}
More information about the pulseaudio-commits
mailing list