Skip to content

Commit ed0323e

Browse files
MrAnnoHofiOne
authored andcommitted
logreader: fix spurious wakeups by updating the suspended flag on I/O poll
Signed-off-by: László Várady <[email protected]> Signed-off-by: Hofi <[email protected]>
1 parent ec61c24 commit ed0323e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/logreader.c

+1
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ log_reader_update_watches(LogReader *self)
335335
switch (prepare_action)
336336
{
337337
case LPPA_POLL_IO:
338+
self->suspended = FALSE;
338339
poll_events_update_watches(self->poll_events, cond);
339340
break;
340341
case LPPA_FORCE_SCHEDULE_FETCH:

0 commit comments

Comments
 (0)