summaryrefslogtreecommitdiffhomepage
path: root/auto/sendfile
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2020-08-17 12:28:48 +0300
committerMax Romanov <max.romanov@nginx.com>2020-08-17 12:28:48 +0300
commit7ffc617ae89fe08b8a9a17bed41ef8941b8151fb (patch)
tree3bf66d4e6003ef87514564792edcfa383810b267 /auto/sendfile
parent4ac7a6f55fb628e67fec97568e9724719d8a9e0a (diff)
downloadunit-7ffc617ae89fe08b8a9a17bed41ef8941b8151fb.tar.gz
unit-7ffc617ae89fe08b8a9a17bed41ef8941b8151fb.tar.bz2
Supporting platforms without sendfile() implementation.
This is a quick and dirty sendfile() replacement. This closes #452 PR on GitHub.
Diffstat (limited to 'auto/sendfile')
-rw-r--r--auto/sendfile6
1 files changed, 2 insertions, 4 deletions
diff --git a/auto/sendfile b/auto/sendfile
index a065f7b6..1c20db06 100644
--- a/auto/sendfile
+++ b/auto/sendfile
@@ -84,10 +84,8 @@ fi
if [ $nxt_found = no ]; then
- $echo
- $echo "$0: error: no supported sendfile() found."
- $echo
- exit 1;
+ # No supported sendfile() found. Using our replacement.
+ nxt_found=yes
fi