From: David Goulet Date: Fri, 28 Mar 2014 17:19:47 +0000 (-0400) Subject: Fix: don't spawn relayd if URL is provided X-Git-Tag: v2.4.1~6 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b0cbcf51b743a7a6979c3b1e27220a6d62af42bc;p=lttng-tools.git Fix: don't spawn relayd if URL is provided In the lttng command line tool, relayd should only be spawned for the default use case which is no URL provided. Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/create.c b/src/bin/lttng/commands/create.c index 4a47d6714..e02b14142 100644 --- a/src/bin/lttng/commands/create.c +++ b/src/bin/lttng/commands/create.c @@ -387,7 +387,8 @@ static int create_session(void) } else { pathname = INSTALL_BIN_PATH "/lttng-relayd"; } - if (!check_relayd() && spawn_relayd(pathname, 0) < 0) { + if (!opt_url && !opt_data_url && !check_relayd() && + spawn_relayd(pathname, 0) < 0) { goto error; } ret = lttng_create_session_live(session_name, url, opt_live_timer);