projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add snapshot output init call that uses URIs
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index afd55a1abf882e41ce6acb8bbceaec46ff77fe2e..3863aa1ceb9de16836d4edc6c55d908fd289e08f 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl.c
+++ b/
src/lib/lttng-ctl/lttng-ctl.c
@@
-340,6
+340,11
@@
static int connect_sessiond(void)
{
int ret;
{
int ret;
+ /* Don't try to connect if already connected. */
+ if (connected) {
+ return 0;
+ }
+
ret = set_session_daemon_path();
if (ret < 0) {
goto error;
ret = set_session_daemon_path();
if (ret < 0) {
goto error;
@@
-1466,7
+1471,7
@@
int _lttng_create_session_ext(const char *name, const char *url,
struct lttcomm_session_msg lsm;
struct lttng_uri *uris = NULL;
struct lttcomm_session_msg lsm;
struct lttng_uri *uris = NULL;
- if (name == NULL || datetime == NULL
|| url == NULL
) {
+ if (name == NULL || datetime == NULL) {
return -LTTNG_ERR_INVALID;
}
return -LTTNG_ERR_INVALID;
}
This page took
0.025118 seconds
and
4
git commands to generate.