projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: write EINTR handling
[lttng-tools.git]
/
src
/
common
/
consumer.c
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index 88e8d9d28017ed5fb0fccbee22fad316f1ed402c..974c65f550c94a6be3fb94c18227f86ad133076e 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-875,7
+875,9
@@
void lttng_consumer_should_exit(struct lttng_consumer_local_data *ctx)
{
int ret;
consumer_quit = 1;
{
int ret;
consumer_quit = 1;
- ret = write(ctx->consumer_should_quit[1], "4", 1);
+ do {
+ ret = write(ctx->consumer_should_quit[1], "4", 1);
+ } while (ret < 0 && errno == EINTR);
if (ret < 0) {
perror("write consumer quit");
}
if (ret < 0) {
perror("write consumer quit");
}
@@
-1522,7
+1524,7
@@
end:
*/
do {
ret = write(ctx->consumer_poll_pipe[1], "", 1);
*/
do {
ret = write(ctx->consumer_poll_pipe[1], "", 1);
- } while (ret
== -1UL
&& errno == EINTR);
+ } while (ret
< 0
&& errno == EINTR);
rcu_unregister_thread();
return NULL;
}
rcu_unregister_thread();
return NULL;
}
This page took
0.023275 seconds
and
4
git commands to generate.