projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: don't spawn relayd if URL is provided
[lttng-tools.git]
/
src
/
bin
/
lttng
/
commands
/
create.c
diff --git
a/src/bin/lttng/commands/create.c
b/src/bin/lttng/commands/create.c
index 4a47d6714f8f9b38f6f48b5f6363bfa1e4e17125..e02b141420c075a1c0e687befade8192eb0d4721 100644
(file)
--- 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";
}
} 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);
goto error;
}
ret = lttng_create_session_live(session_name, url, opt_live_timer);
This page took
0.023145 seconds
and
4
git commands to generate.