LibCore: Mark connections to InspectorServer as MSG_NOSIGNAL

If InspectorServer closes for some reason at the wrong time, there is no
need for the inspected application to terminate.
This commit is contained in:
Sam Atkins 2022-12-02 15:14:51 +00:00 committed by Andreas Kling
parent 9eb26ddd21
commit 0fc673e759
Notes: sideshowbarker 2024-07-17 08:43:11 +09:00

View file

@ -368,7 +368,7 @@ bool connect_to_inspector_server()
return false;
}
auto inspector_server_path = maybe_path.value();
auto maybe_socket = Stream::LocalSocket::connect(inspector_server_path);
auto maybe_socket = Stream::LocalSocket::connect(inspector_server_path, Stream::PreventSIGPIPE::Yes);
if (maybe_socket.is_error()) {
dbgln("connect_to_inspector_server: Failed to connect: {}", maybe_socket.error());
return false;