diff --git a/Libraries/LibIPC/Decoder.cpp b/Libraries/LibIPC/Decoder.cpp index 1d17fcd87ae57..afce865211fc4 100644 --- a/Libraries/LibIPC/Decoder.cpp +++ b/Libraries/LibIPC/Decoder.cpp @@ -111,10 +111,12 @@ template<> ErrorOr 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; }