Implement the Wine host process watchdog

This will shut down a bridge's sockets when the connected native host
process exits, to prevent dangling Wine processes.
This commit is contained in:
Robbert van der Helm
2021-05-01 17:54:22 +02:00
parent e912bdd302
commit 832089d4d1
8 changed files with 52 additions and 13 deletions
+4 -2
View File
@@ -82,12 +82,14 @@ __cdecl
switch (plugin_type) {
case PluginType::vst2:
bridge = std::make_unique<Vst2Bridge>(
main_context, plugin_location, socket_endpoint_path);
main_context, plugin_location, socket_endpoint_path,
parent_pid);
break;
case PluginType::vst3:
#ifdef WITH_VST3
bridge = std::make_unique<Vst3Bridge>(
main_context, plugin_location, socket_endpoint_path);
main_context, plugin_location, socket_endpoint_path,
parent_pid);
#else
std::cerr << "This version of yabridge has not been compiled "
"with VST3 support"