diff options
author | Valentin Bartenev <vbart@nginx.com> | 2014-12-26 16:22:50 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2014-12-26 16:22:50 +0300 |
commit | c07bebdcd116d04c96c71126b86a5ba13737db78 (patch) | |
tree | 5404eb633a0ca3ee43af9c1e8cc0c1f9316c560e /src/core/ngx_file.c | |
parent | cb6f338a8c5d8158571dabc464e0b191b4fbc5f1 (diff) | |
download | nginx-c07bebdcd116d04c96c71126b86a5ba13737db78.tar.gz nginx-c07bebdcd116d04c96c71126b86a5ba13737db78.zip |
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.
Diffstat (limited to 'src/core/ngx_file.c')
-rw-r--r-- | src/core/ngx_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c index 7e6e921a3..1cafb825d 100644 --- a/src/core/ngx_file.c +++ b/src/core/ngx_file.c @@ -114,7 +114,7 @@ ngx_write_chain_to_temp_file(ngx_temp_file_t *tf, ngx_chain_t *chain) rc = ngx_create_temp_file(&tf->file, tf->path, tf->pool, tf->persistent, tf->clean, tf->access); - if (rc == NGX_ERROR || rc == NGX_AGAIN) { + if (rc != NGX_OK) { return rc; } |