diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-08-17 12:28:48 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-08-17 12:28:48 +0300 |
commit | 7ffc617ae89fe08b8a9a17bed41ef8941b8151fb (patch) | |
tree | 3bf66d4e6003ef87514564792edcfa383810b267 /auto/sendfile | |
parent | 4ac7a6f55fb628e67fec97568e9724719d8a9e0a (diff) | |
download | unit-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/sendfile | 6 |
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 |