mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-08 23:00:08 +02:00
The problem here is that the pipe we used for telling FEXInterpreter that the FEXServer is ready to accept connections was inherited by erofsfuse or squashfuse. So the closing of the pipe from the FEXServer side would leave a reference open in squashfuse or erofsfuse. Fix this by setting FD_CLOEXEC on the pipe, but also pass the pipe FD through an argument instead of scanning for all pipes. Then once we execve the squashfuse/erofsfuse application, the FD isn't inherited. Fixes #4329
7 lines
141 B
C++
7 lines
141 B
C++
// SPDX-License-Identifier: MIT
|
|
#pragma once
|
|
namespace PipeScanner {
|
|
void SetWaitPipe(int FD);
|
|
void ClosePipes();
|
|
} // namespace PipeScanner
|