projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Docs: document why a negative socket may be passed
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-app.c
diff --git
a/src/bin/lttng-sessiond/ust-app.c
b/src/bin/lttng-sessiond/ust-app.c
index 5b37a8e7444a93da9600eaa9b96354309117a923..23f29c13ca414a0a02903952879701b73dda397b 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-app.c
+++ b/
src/bin/lttng-sessiond/ust-app.c
@@
-489,6
+489,11
@@
void delete_ust_app_channel(int sock, struct ust_app_channel *ua_chan,
ust_registry_channel_del_free(registry, ua_chan->key,
sock >= 0);
}
ust_registry_channel_del_free(registry, ua_chan->key,
sock >= 0);
}
+ /*
+ * A negative socket can be used by the caller when
+ * cleaning-up a ua_chan in an error path. Skip the
+ * accounting in this case.
+ */
if (sock >= 0) {
save_per_pid_lost_discarded_counters(ua_chan);
}
if (sock >= 0) {
save_per_pid_lost_discarded_counters(ua_chan);
}
This page took
0.024131 seconds
and
5
git commands to generate.