[lttng-dev] [PATCH lttng-tools] Cleanup: lock file already taken is error, not warning

Jérémie Galarneau jeremie.galarneau at efficios.com
Wed Jan 7 16:10:57 EST 2015


Merged, thanks!

Jérémie

On Mon, Jan 5, 2015 at 3:58 PM, Mathieu Desnoyers
<mathieu.desnoyers at efficios.com> wrote:
> Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
> ---
>  src/common/utils.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/common/utils.c b/src/common/utils.c
> index 3428d31..7f91dcb 100644
> --- a/src/common/utils.c
> +++ b/src/common/utils.c
> @@ -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
>



-- 
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com



More information about the lttng-dev mailing list