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
/
kernel-consumer
/
kernel-consumer.c
diff --git
a/src/common/kernel-consumer/kernel-consumer.c
b/src/common/kernel-consumer/kernel-consumer.c
index 3c9687306dc2aa2e904ef35f9954bdcc37e1d436..0dfaa16e7620ec0480a833ef6acce6921e77ec87 100644
(file)
--- a/
src/common/kernel-consumer/kernel-consumer.c
+++ b/
src/common/kernel-consumer/kernel-consumer.c
@@
-334,7
+334,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;
}
/*
}
/*
This page took
0.025051 seconds
and
4
git commands to generate.