From 83a0dc270263d74cfbf6189425b381ee77cf1ffc Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Mon, 13 Feb 2006 19:22:00 +0000 Subject: [PATCH] disable posix_fadvise support as 2.4.x kernels cause problems here. git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@992 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/network_linux_sendfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/network_linux_sendfile.c b/src/network_linux_sendfile.c index aabe9876..6265f40e 100644 --- a/src/network_linux_sendfile.c +++ b/src/network_linux_sendfile.c @@ -23,6 +23,9 @@ #include "log.h" #include "stat_cache.h" +/* on linux 2.4.29 + debian/ubuntu we have crashes if this is enabled */ +#undef HAVE_POSIX_FADVISE + int network_write_chunkqueue_linuxsendfile(server *srv, connection *con, int fd, chunkqueue *cq) { chunk *c; size_t chunks_written = 0;