comparison src/os/unix/ngx_files.c @ 4794:4163fb9dcfcb

Explicitly ignore returned value from unlink() in ngx_open_tempfile(). The only thing we could potentially do here in case of error returned is to complain to error log, but we don't have log structure available here due to interface limitations. Prodded by Coverity.
author Andrey Belov <defan@nginx.com>
date Mon, 06 Aug 2012 16:06:59 +0000
parents 9acc1a5a5b9a
children bd6299189b49 2e4e4084b562
comparison
equal deleted inserted replaced
4784:dd63abf20ba7 4794:4163fb9dcfcb
137 137
138 fd = open((const char *) name, O_CREAT|O_EXCL|O_RDWR, 138 fd = open((const char *) name, O_CREAT|O_EXCL|O_RDWR,
139 access ? access : 0600); 139 access ? access : 0600);
140 140
141 if (fd != -1 && !persistent) { 141 if (fd != -1 && !persistent) {
142 unlink((const char *) name); 142 (void) unlink((const char *) name);
143 } 143 }
144 144
145 return fd; 145 return fd;
146 } 146 }
147 147