From: David Goulet Date: Wed, 20 Jul 2011 20:40:41 +0000 (-0400) Subject: Fix error handling X-Git-Tag: v2.0-pre2~14 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e0ac0dd5d6835c17832946a5ce697fa354278a83;p=lttng-tools.git Fix error handling Signed-off-by: David Goulet --- diff --git a/lttng/commands/create.c b/lttng/commands/create.c index 9fe825140..dbed8f021 100644 --- a/lttng/commands/create.c +++ b/lttng/commands/create.c @@ -109,6 +109,9 @@ static int create_session() /* Init lttng session config */ ret = config_init(session_name); if (ret < 0) { + if (ret == -1) { + ret = CMD_ERROR; + } goto error; }