From 4fb15d25f3b0714f9c95ea3ccd6aadf41338fd28 Mon Sep 17 00:00:00 2001 From: stasoid Date: Thu, 14 Nov 2024 18:20:38 +0500 Subject: [PATCH] LibCore/MappedFile: Remove unnecessary fcntl call --- Libraries/LibCore/MappedFile.cpp | 2 -- 1 file changed, 2 deletions(-) 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); };