Don't spawen session daemon on version command
authorDavid Goulet <dgoulet@efficios.com>
Wed, 1 Feb 2012 20:56:31 +0000 (15:56 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 1 Feb 2012 20:56:41 +0000 (15:56 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/lttng.c

index 71ef7ed05ef93846aa21054b00de4f21b821a561..71bc1bf7706f57804833f9de90982ce0a4d0f7e0 100644 (file)
@@ -412,7 +412,8 @@ static int check_args_no_sessiond(int argc, char **argv)
                if ((strncmp(argv[i], "-h", sizeof("-h")) == 0) ||
                                strncmp(argv[i], "--h", sizeof("--h")) == 0 ||
                                strncmp(argv[i], "--list-options", sizeof("--list-options")) == 0 ||
-                               strncmp(argv[i], "--list-commands", sizeof("--list-commands")) == 0) {
+                               strncmp(argv[i], "--list-commands", sizeof("--list-commands")) == 0 ||
+                               strncmp(argv[i], "version", sizeof("version"))) {
                        return 1;
                }
        }
This page took 0.025854 seconds and 4 git commands to generate.