Buffer size need to be at least a page size. (probably better to keep it a multiple of a page size)
This commit is contained in:
parent
36fd2b86c5
commit
2ce7c94d11
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
#define MIN(x, y) ((x) < (y) ? (x) : (y))
|
#define MIN(x, y) ((x) < (y) ? (x) : (y))
|
||||||
|
|
||||||
#define BUFFER_SIZE 1024
|
#define BUFFER_SIZE 4096
|
||||||
|
|
||||||
static char *mmap_buffer;
|
static char *mmap_buffer;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user