Skip to contentSkip to conversation

Cleanup: lock file already taken is error, not warning

PATCH Jérémie Galarneau 1 participant 1 message Jan 7, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Jérémie Galarneau

author Applied
#1 lore raw

Merged, thanks!

Jérémie

Quoted 21 lines · Mathieu Desnoyers
---
 src/common/utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/common/utils.c +1 -2
index 3428d31..7f91dcb 100644
@@ -516,7 +516,7 @@ int utils_create_lock_file(const char *filepath)
         */
        ret = flock(fd, LOCK_EX | LOCK_NB);
        if (ret) {
-               WARN("Could not get lock file %s, another instance is running.",
+               ERR("Could not get lock file %s, another instance is running.",
                        filepath);
                if (close(fd)) {
                        PERROR("close lock file");
--

2.1.1

Signature · 8 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev