projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #516 from pyr/feature-normalized-cpu
[collectd.git]
/
src
/
utils_rrdcreate.c
diff --git
a/src/utils_rrdcreate.c
b/src/utils_rrdcreate.c
index
3b8f342
..
a34e0da
100644
(file)
--- a/
src/utils_rrdcreate.c
+++ b/
src/utils_rrdcreate.c
@@
-463,9
+463,8
@@
static int lock_file (char const *filename) /* {{{ */
return (EEXIST);
}
- errno = 0;
status = stat (filename, &sb);
- if (
errno != ENOENT
)
+ if (
(status == 0) || (errno != ENOENT)
)
{
pthread_mutex_unlock (&async_creation_lock);
return (EEXIST);