Use xpc_connection_kill for killing child processes where appropriate
[WebKit-https.git] / Source / WebKit2 / Shared / ChildProcessProxy.cpp
index aa14a1b..3d49f3d 100644 (file)
@@ -65,6 +65,10 @@ void ChildProcessProxy::connect()
 
 void ChildProcessProxy::terminate()
 {
+    if (m_connection && m_connection->kill())
+        return;
+
+    // FIXME: We should really merge process launching into IPC connection creation and get rid of the process launcher.
     if (m_processLauncher)
         m_processLauncher->terminateProcess();
 }