Merge "use epoll_create1" am: a8d712ec50
am: 649d2d35dc
Change-Id: I3067b7381fca78ea7ed862f81dee9efac2f69f1b
This commit is contained in:
+1
-1
@@ -55,7 +55,7 @@ static bool test_bit(size_t bit, unsigned long* array) { // NOLINT
|
|||||||
}
|
}
|
||||||
|
|
||||||
int ev_init(ev_callback input_cb, bool allow_touch_inputs) {
|
int ev_init(ev_callback input_cb, bool allow_touch_inputs) {
|
||||||
g_epoll_fd = epoll_create(MAX_DEVICES + MAX_MISC_FDS);
|
g_epoll_fd = epoll_create1(EPOLL_CLOEXEC);
|
||||||
if (g_epoll_fd == -1) {
|
if (g_epoll_fd == -1) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user