commit | 700a779824c2d83ba1f8c7278f20863dce5ea3e1 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Sun Nov 15 09:16:58 2009 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Sun Nov 15 09:16:58 2009 +0000 |
tree | b8b2cfece1215cf1c598fdbb51dd4b123e3f3c0b | |
parent | b13029c57c3011c6df10566278eb4d5255e592d2 [diff] [blame] |
fix posix_fadvise() error handling
diff --git a/src/os/unix/ngx_files.h b/src/os/unix/ngx_files.h index 2efd247..ccaf44a 100644 --- a/src/os/unix/ngx_files.h +++ b/src/os/unix/ngx_files.h
@@ -264,7 +264,7 @@ #define NGX_HAVE_READ_AHEAD 1 -#define ngx_read_ahead(fd, n) posix_fadvise(fd, 0, 0, POSIX_FADV_SEQUENTIAL) +ngx_int_t ngx_read_ahead(ngx_fd_t fd, size_t n); #define ngx_read_ahead_n "posix_fadvise(POSIX_FADV_SEQUENTIAL)" #else