Skip to content

Commit

Permalink
LibIPC: Fix Decoder.cpp compilation errors on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stasoid committed Nov 30, 2024
1 parent b953bb9 commit 5f6ecf9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Libraries/LibIPC/Decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ template<>
ErrorOr<File> decode(Decoder& decoder)
{
auto file = TRY(decoder.files().try_dequeue());
#ifndef AK_OS_WINDOWS
auto fd = file.fd();

auto fd_flags = TRY(Core::System::fcntl(fd, F_GETFD));
TRY(Core::System::fcntl(fd, F_SETFD, fd_flags | FD_CLOEXEC));
#endif
return file;
}

Expand Down

0 comments on commit 5f6ecf9

Please sign in to comment.