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

Commit 20f260b6 authored by Nick Kralevich's avatar Nick Kralevich Committed by android-build-merger
Browse files

Merge "CursorWindow.cpp: replace dup() with fcntl(F_DUPFD_CLOEXEC)" am: adf025b1 am: de408b3c

am: 7f74aeed

Change-Id: I20f72f6de160a38d3b6067e685c396e6a27e2dc7
parents 8a739a23 7f74aeed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@ status_t CursorWindow::createFromParcel(Parcel* parcel, CursorWindow** outCursor
        if (size < 0) {
            result = UNKNOWN_ERROR;
        } else {
            int dupAshmemFd = ::dup(ashmemFd);
            int dupAshmemFd = ::fcntl(ashmemFd, F_DUPFD_CLOEXEC, 0);
            if (dupAshmemFd < 0) {
                result = -errno;
            } else {