| 9 | namespace PipeScanner { |
| 10 | std::vector<int> IncomingPipes {}; |
| 11 | void SetWaitPipe(int FD) { |
| 12 | int flags = fcntl(FD, F_GETFD); |
| 13 | flags |= FD_CLOEXEC; |
| 14 | fcntl(FD, F_SETFD, flags); |
| 15 | IncomingPipes.emplace_back(FD); |
| 16 | } |
| 17 | |
| 18 | void ClosePipes() { |
| 19 | for (auto pipe : IncomingPipes) { |