mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-08 17:31:29 -06:00
cleanup pipe handles after use
This commit is contained in:
parent
fc7d10a483
commit
0cc843b7ea
@ -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()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user