Skip to content
Snippets Groups Projects
Commit e7ae8b17 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Disable all use of sendfile(2).

Rev: src/modules/files/sendfile.c:1.48
parent 58dcfef5
No related branches found
No related tags found
No related merge requests found
/* /*
* $Id: sendfile.c,v 1.47 2000/10/07 13:12:12 grubba Exp $ * $Id: sendfile.c,v 1.48 2000/10/19 13:56:21 grubba Exp $
* *
* Sends headers + from_fd[off..off+len-1] + trailers to to_fd asyncronously. * Sends headers + from_fd[off..off+len-1] + trailers to to_fd asyncronously.
* *
...@@ -105,6 +105,13 @@ ...@@ -105,6 +105,13 @@
#undef THIS #undef THIS
#define THIS ((struct pike_sendfile *)(Pike_fp->current_storage)) #define THIS ((struct pike_sendfile *)(Pike_fp->current_storage))
/*
* All known versions of sendfile(2) are broken.
*/
#ifndef HAVE_BROKEN_SENDFILE
#define HAVE_BROKEN_SENDFILE
#endif /* !HAVE_BROKEN_SENDFILE */
/* /*
* Disable any use of sendfile(2) if HAVE_BROKEN_SENDFILE is defined. * Disable any use of sendfile(2) if HAVE_BROKEN_SENDFILE is defined.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment