projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: consumer recv command error path
[lttng-tools.git]
/
src
/
common
/
ust-consumer
/
ust-consumer.c
diff --git
a/src/common/ust-consumer/ust-consumer.c
b/src/common/ust-consumer/ust-consumer.c
index 47c0d460ffb60cc612d9806325602c6eac459023..935f6f31139e4e095219e1bb2e9c59d420718572 100644
(file)
--- a/
src/common/ust-consumer/ust-consumer.c
+++ b/
src/common/ust-consumer/ust-consumer.c
@@
-282,7
+282,12
@@
end:
ret = write(ctx->consumer_poll_pipe[1], "", 1);
} while (ret == -1UL && errno == EINTR);
end_nosignal:
ret = write(ctx->consumer_poll_pipe[1], "", 1);
} while (ret == -1UL && errno == EINTR);
end_nosignal:
- return 0;
+
+ /*
+ * Return 1 to indicate success since the 0 value can be a socket shutdown
+ * during the recv() or send() call.
+ */
+ return 1;
}
int lttng_ustconsumer_allocate_channel(struct lttng_consumer_channel *chan)
}
int lttng_ustconsumer_allocate_channel(struct lttng_consumer_channel *chan)
This page took
0.024966 seconds
and
4
git commands to generate.