projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: Unchecked close() return value in utils_create_lock_file()
[lttng-tools.git]
/
src
/
common
/
utils.c
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 365510b3c37de51bacdeafee888b7f87e9776ac5..e7dccb7b7490cb1c1392461304e70ea7cbf5d390 100644
(file)
--- a/
src/common/utils.c
+++ b/
src/common/utils.c
@@
-514,7
+514,9
@@
int utils_create_lock_file(const char *filepath)
if (ret) {
WARN("Could not get lock file %s, another instance is running.",
filepath);
if (ret) {
WARN("Could not get lock file %s, another instance is running.",
filepath);
- close(fd);
+ if (close(fd)) {
+ PERROR("close lock file");
+ }
fd = ret;
goto error;
}
fd = ret;
goto error;
}
This page took
0.024306 seconds
and
4
git commands to generate.