From: David Goulet Date: Wed, 1 Feb 2012 20:56:31 +0000 (-0500) Subject: Don't spawen session daemon on version command X-Git-Tag: v2.0-pre19~18 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4747a49b20089e4ac15d02a5191bd6cca8567e2f;p=lttng-tools.git Don't spawen session daemon on version command Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c index 71ef7ed05..71bc1bf77 100644 --- a/src/bin/lttng/lttng.c +++ b/src/bin/lttng/lttng.c @@ -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; } }