From 54edde96c28b8e1f3e83b406b0654b5bed8ac540 Mon Sep 17 00:00:00 2001 From: Sears Russell Date: Thu, 20 Jan 2005 00:26:09 +0000 Subject: [PATCH] Possible fix for older 2.4 kernels. (Also should improve performance...) --- src/lladd/logger/logWriter.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lladd/logger/logWriter.c b/src/lladd/logger/logWriter.c index 0b5d178..86a7a5c 100644 --- a/src/lladd/logger/logWriter.c +++ b/src/lladd/logger/logWriter.c @@ -142,8 +142,10 @@ int openLogWriter() { #define BUFSIZE (1024*96) //#define BUFSIZE (512) //char * buffer ;/*= malloc(BUFSIZE);*/ - int ret = posix_memalign((void*)&(buffer), PAGE_SIZE, BUFSIZE); - assert(!ret); + /* int ret = posix_memalign((void*)&(buffer), PAGE_SIZE, BUFSIZE); + assert(!ret); */ + char * buffer = malloc(BUFSIZE); + int logFD = open (LOG_FILE, O_CREAT | O_RDWR | O_APPEND /*| O_SYNC*/, S_IRWXU | S_IRWXG | S_IRWXO); if(logFD == -1) {