mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Just detach stdin/stdout redirect threads as the program will exit immediately afterwards
(cherry picked from commit aeb58b5e9c3eef9f26fde104a2adc2684423b8ac)
This commit is contained in:
@@ -189,9 +189,8 @@ int launchExecutable() {
|
||||
::CloseHandle(pi.hProcess);
|
||||
::CloseHandle(pi.hThread);
|
||||
|
||||
// Wait for I/O threads to finish
|
||||
if (stdinThread.joinable()) stdinThread.join();
|
||||
if (stdoutThread.joinable()) stdoutThread.join();
|
||||
stdinThread.detach();
|
||||
stdoutThread.detach();
|
||||
|
||||
return static_cast<int>(exitCode);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user