projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: sessiond and agent deadlock on destroy
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
session.c
diff --git
a/src/bin/lttng-relayd/session.c
b/src/bin/lttng-relayd/session.c
index 9f690d3af68d5eaf0a319b2c8439534587249101..6c30821ff1348a405816af553a7b2951120c8a5c 100644
(file)
--- a/
src/bin/lttng-relayd/session.c
+++ b/
src/bin/lttng-relayd/session.c
@@
-343,6
+343,12
@@
struct relay_session *session_create(const char *session_name,
}
if (creation_time) {
LTTNG_OPTIONAL_SET(&session->creation_time, *creation_time);
}
if (creation_time) {
LTTNG_OPTIONAL_SET(&session->creation_time, *creation_time);
+ } else {
+ LTTNG_OPTIONAL_SET(&session->creation_time, time(NULL));
+ if (session->creation_time.value == (time_t) -1) {
+ PERROR("Failed to sample session creation time");
+ goto error;
+ }
}
session->session_name_contains_creation_time =
session_name_contains_creation_time;
}
session->session_name_contains_creation_time =
session_name_contains_creation_time;
This page took
0.02456 seconds
and
4
git commands to generate.