From: David Goulet Date: Tue, 15 Jul 2014 18:28:38 +0000 (-0400) Subject: Fix: on session load, add it to the .lttngrc X-Git-Tag: v2.6.0-rc1~139 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8e525b95b7a5fd1a89572ab876c0cd92524e916e;p=lttng-tools.git Fix: on session load, add it to the .lttngrc Fixes #818 Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/load.c b/src/bin/lttng/commands/load.c index 20d984389..2a3c65795 100644 --- a/src/bin/lttng/commands/load.c +++ b/src/bin/lttng/commands/load.c @@ -110,6 +110,10 @@ int cmd_load(int argc, const char **argv) if (opt_load_all) { MSG("All sessions have been loaded successfully"); } else if (session_name) { + ret = config_init((char *)session_name); + if (ret < 0) { + ret = CMD_WARNING; + } MSG("Session %s has been loaded successfully", session_name); } else { MSG("Session has been loaded successfully");