From mboxrd@z Thu Jan 1 00:00:00 1970 From: jeremie.galarneau@efficios.com (=?UTF-8?Q?J=C3=A9r=C3=A9mie_Galarneau?=) Date: Mon, 27 Jul 2015 11:42:58 -0400 Subject: [lttng-dev] [PATCH lttng-tools 2/2] Fix: do not spawn sessiond on track/untrack commands In-Reply-To: <1437774180-32746-2-git-send-email-jonathan.rajotte-julien@efficios.com> References: <1437774180-32746-1-git-send-email-jonathan.rajotte-julien@efficios.com> <1437774180-32746-2-git-send-email-jonathan.rajotte-julien@efficios.com> Message-ID: Hi Jonathan, I have decided to apply a different fix which ensures that only the "create" command actually spawns a session daemon. https://github.com/lttng/lttng-tools/commit/92360082fd291a95695fb612d773ae1bb991c256 Thanks! J?r?mie On Fri, Jul 24, 2015 at 5:43 PM, Jonathan Rajotte < jonathan.rajotte-julien at efficios.com> wrote: > Signed-off-by: Jonathan Rajotte > --- > src/bin/lttng/lttng.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/src/bin/lttng/lttng.c b/src/bin/lttng/lttng.c > index 13c7732..4cc320c 100644 > --- a/src/bin/lttng/lttng.c > +++ b/src/bin/lttng/lttng.c > @@ -432,7 +432,9 @@ static int check_args_no_sessiond(int argc, char > **argv) > strncmp(argv[i], "--list-options", > sizeof("--list-options")) == 0 || > strncmp(argv[i], "--list-commands", > sizeof("--list-commands")) == 0 || > strncmp(argv[i], "version", > sizeof("version")) == 0 || > - strncmp(argv[i], "view", sizeof("view")) > == 0) { > + strncmp(argv[i], "view", sizeof("view")) > == 0 || > + strncmp(argv[i], "track", sizeof("track")) > == 0 || > + strncmp(argv[i], "untrack", > sizeof("untrack")) == 0) { > return 1; > } > } > -- > 2.1.4 > > -- J?r?mie Galarneau EfficiOS Inc. http://www.efficios.com -------------- next part -------------- An HTML attachment was scrubbed... URL: