From 12d35b1d46c6c90e891141ff5086e6d52fdc1c90 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 16 Dec 2021 14:21:20 +0100 Subject: [PATCH] Use a private mmap buffer for streams --- trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trace.c b/trace.c index 7c53287..2eb8304 100644 --- a/trace.c +++ b/trace.c @@ -448,7 +448,7 @@ load_stream_buf(struct ovni_stream *stream, struct ovni_ethread *thread) stream->size = st.st_size; stream->buf = mmap(NULL, stream->size, PROT_READ | PROT_WRITE, - MAP_SHARED, fd, 0); + MAP_PRIVATE, fd, 0); if(stream->buf == MAP_FAILED) {