Cleanup: Unchecked close() return value in utils_create_lock_file()
[lttng-tools.git] / src / common / utils.c
index 365510b3c37de51bacdeafee888b7f87e9776ac5..e7dccb7b7490cb1c1392461304e70ea7cbf5d390 100644 (file)
@@ -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);
-               close(fd);
+               if (close(fd)) {
+                       PERROR("close lock file");
+               }
                fd = ret;
                goto error;
        }
This page took 0.023465 seconds and 4 git commands to generate.