diff --git a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp index 4e8dd2fd..64a9b994 100644 --- a/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp +++ b/src/Cafe/HW/Latte/Renderer/Vulkan/VulkanRenderer.cpp @@ -344,12 +344,8 @@ void WorkaroundChildAbortHandler(int unused) _exit(2); } -void LinuxBreathOfTheWildWorkaround() +void PerformBOTWLinuxWorkaround(int subProcessPipes[2]) { - - int subProcessPipes[2]{}; - pipe(subProcessPipes); - int childID = fork(); if (childID == 0) // inside this if statement runs in child { @@ -439,6 +435,17 @@ void LinuxBreathOfTheWildWorkaround() } } + +void LinuxBreathOfTheWildWorkaround() +{ + int subProcessPipes[2]{}; + pipe(subProcessPipes); + + PerformBOTWLinuxWorkaround(subProcessPipes); + + close(subProcessPipes[0]); + close(subProcessPipes[1]); +} #endif VulkanRenderer::VulkanRenderer()