Possible fix for older 2.4 kernels. (Also should improve performance...)

This commit is contained in:
Sears Russell 2005-01-20 00:26:09 +00:00
parent 23539f446a
commit 54edde96c2

View file

@ -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) {