[dovecot-cvs] dovecot/src/lib ostream-file.c,1.38,1.39

cras at dovecot.org cras at dovecot.org
Fri Oct 15 16:03:14 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv6893

Modified Files:
	ostream-file.c 
Log Message:
Don't use sendfile() for files, even with Linux. 2.6 kernels don't support
it anymore and I'm not sure anymore if it fully worked with 2.4 either.



Index: ostream-file.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/ostream-file.c,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- ostream-file.c	8 Oct 2004 18:36:57 -0000	1.38
+++ ostream-file.c	15 Oct 2004 13:03:11 -0000	1.39
@@ -733,12 +733,7 @@
 				fstream->file = TRUE;
 			}
 		}
-#ifndef HAVE_LINUX_SENDFILE
-		/* only Linux supports sendfile() with non-sockets. Other
-		   systems fail more or less gracefully if it's tried, so
-		   don't bother to even try with them. */
 		fstream->no_sendfile = TRUE;
-#endif
 	} else {
 		if (net_getsockname(fd, NULL, NULL) < 0) {
 			fstream->no_sendfile = TRUE;



More information about the dovecot-cvs mailing list