Merge "use epoll_create1" am: a8d712ec50 am: 649d2d35dc

am: 78f126e5a2

Change-Id: Ia00a035f2d671baabba7c1a2ed89b703e2241c2a
This commit is contained in:
Nick Kralevich 2018-12-17 14:13:29 -08:00 committed by android-build-merger
commit cc2879d8b6

View file

@ -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) {
g_epoll_fd = epoll_create(MAX_DEVICES + MAX_MISC_FDS);
g_epoll_fd = epoll_create1(EPOLL_CLOEXEC);
if (g_epoll_fd == -1) {
return -1;
}