From 16aa1af14eb3bd887b6efbd3e5ef30f613f96103 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 28 May 2020 19:00:10 +0200 Subject: [PATCH] Don't check for child termination with winedbg This of course can't work since the process is spawned in a detached state. --- src/plugin/plugin-bridge.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugin/plugin-bridge.cpp b/src/plugin/plugin-bridge.cpp index e6816f3e..d9fb243a 100644 --- a/src/plugin/plugin-bridge.cpp +++ b/src/plugin/plugin-bridge.cpp @@ -86,6 +86,7 @@ PluginBridge::PluginBridge(audioMasterCallback host_callback) async_log_pipe_lines(wine_stderr, wine_stderr_buffer, "[Wine STDERR] "); wine_io_handler = std::thread([&]() { io_context.run(); }); +#ifndef USE_WINEDBG // If the Wine process fails to start, then nothing will connect to the // sockets and we'll be hanging here indefinitely. To prevent this, we'll // periodically poll whether the Wine process is still running, and throw @@ -125,6 +126,7 @@ PluginBridge::PluginBridge(audioMasterCallback host_callback) std::this_thread::sleep_for(1s); } }).detach(); +#endif // It's very important that these sockets are connected to in the same // order in the Wine VST host