Fix: on session load, add it to the .lttngrc
authorDavid Goulet <dgoulet@efficios.com>
Tue, 15 Jul 2014 18:28:38 +0000 (14:28 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 15 Jul 2014 18:28:38 +0000 (14:28 -0400)
Fixes #818

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/load.c

index 20d984389e01d080f5e30ef5cb4ccee8b26348b5..2a3c6579574b27224a1296cde2956b92d06a6c30 100644 (file)
@@ -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");
This page took 0.026089 seconds and 4 git commands to generate.