projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9263f20
)
Fix: only set the new_streams flag if a viewer is attached
author
Julien Desfossez
<jdesfossez@efficios.com>
Mon, 10 Feb 2014 23:52:29 +0000
(18:52 -0500)
committer
David Goulet
<dgoulet@efficios.com>
Tue, 11 Feb 2014 21:14:42 +0000
(16:14 -0500)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-relayd/main.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/lttng-relayd/main.c
b/src/bin/lttng-relayd/main.c
index 688fc1ec48e478f929537a385adab19f089f5053..1cbd12a65ea5a955a1d1ee6514bcaeccdc1cca84 100644
(file)
--- a/
src/bin/lttng-relayd/main.c
+++ b/
src/bin/lttng-relayd/main.c
@@
-1897,7
+1897,9
@@
int relay_streams_sent(struct lttcomm_relayd_hdr *recv_hdr,
/*
* Inform the viewer that there are new streams in the session.
*/
- uatomic_set(&conn->session->new_streams, 1);
+ if (conn->session->viewer_refcount) {
+ uatomic_set(&conn->session->new_streams, 1);
+ }
reply.ret_code = htobe32(LTTNG_OK);
send_ret = conn->sock->ops->sendmsg(conn->sock, &reply, sizeof(reply), 0);
This page took
0.02714 seconds
and
4
git commands to generate.