projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce a new utils_partial_realpath function
[lttng-tools.git]
/
src
/
common
/
consumer-metadata-cache.c
diff --git
a/src/common/consumer-metadata-cache.c
b/src/common/consumer-metadata-cache.c
index d597e64e37883c91182bcaf9c54327cd9cc0d54f..d8f5001f8b5efed8d12239a4856d46bde3939709 100644
(file)
--- a/
src/common/consumer-metadata-cache.c
+++ b/
src/common/consumer-metadata-cache.c
@@
-81,6
+81,7
@@
int consumer_metadata_cache_write(struct lttng_consumer_channel *channel,
unsigned int offset, unsigned int len, char *data)
{
int ret = 0;
unsigned int offset, unsigned int len, char *data)
{
int ret = 0;
+ int size_ret;
struct consumer_metadata_cache *cache;
assert(channel);
struct consumer_metadata_cache *cache;
assert(channel);
@@
-109,10
+110,11
@@
int consumer_metadata_cache_write(struct lttng_consumer_channel *channel,
cache->contiguous = cache->max_offset;
if (channel->monitor) {
cache->contiguous = cache->max_offset;
if (channel->monitor) {
-
ret =
write(channel->metadata_stream->ust_metadata_poll_pipe[1],
+
size_ret = lttng_
write(channel->metadata_stream->ust_metadata_poll_pipe[1],
&dummy, 1);
&dummy, 1);
- if (ret < 1) {
+ if (
size_
ret < 1) {
ERR("Wakeup UST metadata pipe");
ERR("Wakeup UST metadata pipe");
+ ret = -1;
goto end;
}
}
goto end;
}
}
This page took
0.024663 seconds
and
4
git commands to generate.