From 509e3a4661f7d4b2465e6bb493071f634d947394 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 15 Jul 2014 14:28:38 -0400 Subject: [PATCH] Fix: on session load, add it to the .lttngrc Fixes #818 Signed-off-by: David Goulet --- src/bin/lttng/commands/load.c | 4 ++++ 1 file changed, 4 insertions(+) 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"); -- 2.34.1