From 2c521c63a46d6c79a7819a822d109ccdd48b6064 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Fri, 28 Mar 2014 13:19:47 -0400 Subject: [PATCH] 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 --- src/bin/lttng/commands/create.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.34.1