Mercurial > hg > nginx
comparison src/core/ngx_file.c @ 5957:570677a06dce
Unified handling of ngx_create_temp_file() return value.
The original check for NGX_AGAIN was surplus, since the function returns
only NGX_OK or NGX_ERROR. Now it looks similar to other places.
No functional changes.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Fri, 26 Dec 2014 16:22:50 +0300 |
parents | cec155f07c84 |
children | a9138c35120d |
comparison
equal
deleted
inserted
replaced
5956:4045818c726a | 5957:570677a06dce |
---|---|
112 | 112 |
113 if (tf->file.fd == NGX_INVALID_FILE) { | 113 if (tf->file.fd == NGX_INVALID_FILE) { |
114 rc = ngx_create_temp_file(&tf->file, tf->path, tf->pool, | 114 rc = ngx_create_temp_file(&tf->file, tf->path, tf->pool, |
115 tf->persistent, tf->clean, tf->access); | 115 tf->persistent, tf->clean, tf->access); |
116 | 116 |
117 if (rc == NGX_ERROR || rc == NGX_AGAIN) { | 117 if (rc != NGX_OK) { |
118 return rc; | 118 return rc; |
119 } | 119 } |
120 | 120 |
121 if (tf->log_level) { | 121 if (tf->log_level) { |
122 ngx_log_error(tf->log_level, tf->file.log, 0, "%s %V", | 122 ngx_log_error(tf->log_level, tf->file.log, 0, "%s %V", |