Mercurial > hg > nginx
comparison src/core/ngx_cycle.c @ 1100:01884449985f
fix building on platforms with non-supported atomic operations
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 11 Feb 2007 07:49:12 +0000 |
parents | c4f666fc3a7e |
children | efb7d84db340 |
comparison
equal
deleted
inserted
replaced
1099:04a8b485447d | 1100:01884449985f |
---|---|
899 ngx_test_lockfile(u_char *file, ngx_log_t *log) | 899 ngx_test_lockfile(u_char *file, ngx_log_t *log) |
900 { | 900 { |
901 #if !(NGX_HAVE_ATOMIC_OPS) | 901 #if !(NGX_HAVE_ATOMIC_OPS) |
902 ngx_fd_t fd; | 902 ngx_fd_t fd; |
903 | 903 |
904 fd = ngx_open_file(file, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN); | 904 fd = ngx_open_file(file, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN, |
905 NGX_FILE_DEFAULT_ACCESS); | |
905 | 906 |
906 if (fd == NGX_INVALID_FILE) { | 907 if (fd == NGX_INVALID_FILE) { |
907 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, | 908 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, |
908 ngx_open_file_n " \"%s\" failed", file); | 909 ngx_open_file_n " \"%s\" failed", file); |
909 return NGX_ERROR; | 910 return NGX_ERROR; |