Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e7352d2 authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "use epoll_create1" am: 7523a067

am: 0eaab52c

Change-Id: Ice00312c9a10cde938e9af9198301e80a607cd00
parents f7ca599d 0eaab52c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -72,7 +72,7 @@ reactor_t* reactor_new(void) {
  ret->epoll_fd = INVALID_FD;
  ret->event_fd = INVALID_FD;

  ret->epoll_fd = epoll_create(MAX_EVENTS);
  ret->epoll_fd = epoll_create1(EPOLL_CLOEXEC);
  if (ret->epoll_fd == INVALID_FD) {
    LOG_ERROR(LOG_TAG, "%s unable to create epoll instance: %s", __func__,
              strerror(errno));