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.7.0-rc2~58 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fcbf4ae7f9ba9b349b80ba5d799e682c405e0191;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; }