diff --git a/Ladybird/WebContentView.cpp b/Ladybird/WebContentView.cpp index 071c4f7229..04f705c9bf 100644 --- a/Ladybird/WebContentView.cpp +++ b/Ladybird/WebContentView.cpp @@ -563,6 +563,9 @@ void WebContentView::create_client() auto child_pid = fork(); if (!child_pid) { + MUST(Core::System::close(ui_fd_passing_fd)); + MUST(Core::System::close(ui_fd)); + auto takeover_string = String::formatted("x:{}", wc_fd); MUST(Core::System::setenv("SOCKET_TAKEOVER"sv, takeover_string, true)); @@ -577,6 +580,9 @@ void WebContentView::create_client() VERIFY_NOT_REACHED(); } + MUST(Core::System::close(wc_fd_passing_fd)); + MUST(Core::System::close(wc_fd)); + auto socket = MUST(Core::Stream::LocalSocket::adopt_fd(ui_fd)); MUST(socket->set_blocking(true));