From: Jérémie Galarneau Date: Thu, 6 Oct 2016 18:52:19 +0000 (-0400) Subject: Fix: check for a session daemon before running load command X-Git-Tag: v2.9.0-rc1~29 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=623bc34cc3236f5cddef955fb2ae0e538230bba0;p=lttng-tools.git Fix: check for a session daemon before running load command Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/commands/load.c b/src/bin/lttng/commands/load.c index ee5aabefb..a0f5e1d65 100644 --- a/src/bin/lttng/commands/load.c +++ b/src/bin/lttng/commands/load.c @@ -155,6 +155,13 @@ int cmd_load(int argc, const char **argv) } } + ret = lttng_session_daemon_alive(); + if (!ret) { + ERR("No session daemon is available"); + ret = CMD_ERROR; + goto end; + } + if (!opt_load_all) { session_name = poptGetArg(pc); if (session_name) {