Mercurial > hg > nginx
comparison src/core/ngx_log.c @ 2629:367b29612a00
Win32 appends synchronized if only FILE_APPEND_DATA and SYNCHRONIZE are set
without any other flags. On the other hand, Unix requires at least the write
flag to be set together with O_APPEND.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 31 Mar 2009 13:52:01 +0000 |
parents | 64a10d6b97bd |
children | dbd02ee65df4 |
comparison
equal
deleted
inserted
replaced
2628:64a10d6b97bd | 2629:367b29612a00 |
---|---|
199 #if (NGX_WIN32) | 199 #if (NGX_WIN32) |
200 | 200 |
201 ngx_stderr_fileno = GetStdHandle(STD_ERROR_HANDLE); | 201 ngx_stderr_fileno = GetStdHandle(STD_ERROR_HANDLE); |
202 | 202 |
203 ngx_stderr.fd = ngx_open_file((u_char *) NGX_ERROR_LOG_PATH, | 203 ngx_stderr.fd = ngx_open_file((u_char *) NGX_ERROR_LOG_PATH, |
204 NGX_FILE_RDWR|NGX_FILE_APPEND, | 204 NGX_FILE_APPEND, |
205 NGX_FILE_CREATE_OR_OPEN, | 205 NGX_FILE_CREATE_OR_OPEN, |
206 NGX_FILE_DEFAULT_ACCESS); | 206 NGX_FILE_DEFAULT_ACCESS); |
207 | 207 |
208 if (ngx_stderr.fd == NGX_INVALID_FILE) { | 208 if (ngx_stderr.fd == NGX_INVALID_FILE) { |
209 ngx_message_box("nginx", MB_OK, ngx_errno, | 209 ngx_message_box("nginx", MB_OK, ngx_errno, |