address log accumulation issue and non-ascii files load on program init

This commit is contained in:
shweet committed 2026-08-13 21:40:28 -04:00
1 parent 46690d6975
commit 5e27111b21
12 files changed
+811 -153

No files matched your search

+4 -1
View File
@@ -1,10 +1,11 @@
#pragma once
#include <cstdint>
#include <filesystem>
#include <functional>
#include <mutex>
#include <string>
#include <string_view>
#include <mutex>
#include <thread>
namespace anm2ed
@@ -46,9 +47,11 @@ namespace anm2ed
class Logger
{
std::filesystem::path logPath{};
std::uintmax_t logSize{};
std::mutex mutex{};
std::thread stderrThread{};
bool isStderrRedirecting{};
bool isLogLimitReached{};
int stderrPipeReadFd{-1};
int stderrPipeWriteFd{-1};
int stderrOriginalFd{-1};