Explorar o código

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.
Sam Atkins %!s(int64=2) %!d(string=hai) anos
pai
achega
0fc673e759
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Userland/Libraries/LibCore/EventLoop.cpp

+ 1 - 1
Userland/Libraries/LibCore/EventLoop.cpp

@@ -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;