diff --git a/Libraries/LibCore/MappedFile.cpp b/Libraries/LibCore/MappedFile.cpp index a9b46c7a77d..3660c2c9e32 100644 --- a/Libraries/LibCore/MappedFile.cpp +++ b/Libraries/LibCore/MappedFile.cpp @@ -29,8 +29,6 @@ ErrorOr> MappedFile::map_from_file(NonnullOwnPtr> MappedFile::map_from_fd_and_close(int fd, [[maybe_unused]] StringView path, Mode mode) { - TRY(Core::System::fcntl(fd, F_SETFD, FD_CLOEXEC)); - ScopeGuard fd_close_guard = [fd] { ::close(fd); };