Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE-12:Update
systemd.578
0001-Remove-the-cap-on-epoll-events.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Remove-the-cap-on-epoll-events.patch of Package systemd.578
Based on 1c724e9e0ec5bc4bf791a3d7b1cf5b955cdb98b2 Mon Sep 17 00:00:00 2001 From: Hannes Reinecke <hare@suse.de> Date: Wed, 4 Mar 2015 16:32:16 +0100 Subject: [PATCH] Remove the cap on epoll events Currently the code will silently blank out events if there are more then 512 epoll events, causing them never to be handled at all. This patch removes the cap on the number of events for epoll_wait, thereby avoiding this issue. --- src/libsystemd/sd-event/sd-event.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- src/libsystemd/sd-event/sd-event.c +++ src/libsystemd/sd-event/sd-event.c @@ -36,7 +36,6 @@ #include "sd-event.h" -#define EPOLL_QUEUE_MAX 512U #define DEFAULT_ACCURACY_USEC (250 * USEC_PER_MSEC) typedef enum EventSourceType { @@ -2077,7 +2076,7 @@ _public_ int sd_event_run(sd_event *e, u if (event_next_pending(e) || e->need_process_child) timeout = 0; - ev_queue_max = CLAMP(e->n_sources, 1U, EPOLL_QUEUE_MAX); + ev_queue_max = MAX(e->n_sources, 1u); ev_queue = newa(struct epoll_event, ev_queue_max); m = epoll_wait(e->epoll_fd, ev_queue, ev_queue_max,
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor