diff --git a/sort.c b/sort.c index 6f97941..15e3818 100644 --- a/sort.c +++ b/sort.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include #include @@ -378,6 +379,9 @@ process_trace(struct ovni_trace *trace) * attempt */ return -1; } + + if(msync(stream->buf, stream->size, MS_ASYNC)) + die("msync failed: %s\n", strerror(errno)); } else {