]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
[event-loop] Handle more than 8 events at once
authorTero Mononen <tmo@iki.fi>
Tue, 15 Jun 2010 14:15:51 +0000 (10:15 -0400)
committerRay Strode <rstrode@redhat.com>
Tue, 15 Jun 2010 14:15:51 +0000 (10:15 -0400)
epoll_wait was getting passed a pointer to 64 events,
but was only being told to use up to 8 of those events
at a time because it was using sizeof (pointer) for the
argument specifying the number of events instead of the
actual number of events.

src/libply/ply-event-loop.c

index 09a04924a4c560471e5615528f6706c785388518..910b0ed6bee1d7b0c58cab73efdd6b2cc942fc54 100644 (file)
@@ -1274,7 +1274,8 @@ ply_event_loop_process_pending_events (ply_event_loop_t *loop)
        }
 
      number_of_received_events = epoll_wait (loop->epoll_fd, events,
-                                             sizeof (events), timeout);
+                                             PLY_EVENT_LOOP_NUM_EVENT_HANDLERS,
+                                             timeout);
 
      ply_event_loop_handle_timeouts (loop);