projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: sessiond: off-by-one poll check when draining an event notifier
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
notification-thread-events.c
diff --git
a/src/bin/lttng-sessiond/notification-thread-events.c
b/src/bin/lttng-sessiond/notification-thread-events.c
index 6bd799279b3ff6cead92c77bb2553c6117ed5afc..747902612d93059705cd9d987cde39e1cc757a31 100644
(file)
--- a/
src/bin/lttng-sessiond/notification-thread-events.c
+++ b/
src/bin/lttng-sessiond/notification-thread-events.c
@@
-2017,7
+2017,7
@@
int drain_event_notifier_notification_pipe(
* the pipe is closed but empty.
*/
ret = lttng_poll_wait_interruptible(&events, 0);
* the pipe is closed but empty.
*/
ret = lttng_poll_wait_interruptible(&events, 0);
- if (ret == 0 || (LTTNG_POLL_GETEV(&events,
1
) & LPOLLIN) == 0) {
+ if (ret == 0 || (LTTNG_POLL_GETEV(&events,
0
) & LPOLLIN) == 0) {
/* No more notification to be read on this pipe. */
ret = 0;
goto end;
/* No more notification to be read on this pipe. */
ret = 0;
goto end;
This page took
0.023578 seconds
and
4
git commands to generate.