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

Commit 682e79f0 authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "use epoll_create1" am: 7523a067 am: 0eaab52c

am: 2e7352d2

Change-Id: If2286a543dd5c7f878b0dd2b5573e8f232aaee6e
parents 8ba98bb2 2e7352d2
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));