From: Jérémie Galarneau Date: Sun, 6 Sep 2015 03:03:51 +0000 (-0400) Subject: Clearer error reporting when failing to launch session daemon X-Git-Tag: v2.8.0-rc1~381 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0f4fa0d2b30909ff5b0ec872e2babc4cff6f786e;p=lttng-tools.git Clearer error reporting when failing to launch session daemon Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 3b679ca71..19c560272 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -667,10 +667,11 @@ static int launch_sessiond(void) } ret = spawn_sessiond(pathname); - if (ret < 0) { - ERR("Problem occurred when starting %s", pathname); - } end: + if (ret) { + ERR("Problem occurred while launching session daemon (%s)", + pathname); + } return ret; }