Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2750:63fb0678a7d6 HEAD
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.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 15 Oct 2004 16:03:11 +0300 |
parents | 0aaf1fec427c |
children | c835f7e5e0e4 |
files | src/lib/ostream-file.c |
diffstat | 1 files changed, 0 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib/ostream-file.c Fri Oct 15 02:57:27 2004 +0300 +++ b/src/lib/ostream-file.c Fri Oct 15 16:03:11 2004 +0300 @@ -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;