Core/Common: Output stdout/stderr from child process without waiting for it to finish

This commit is contained in:
Shauren
2024-09-14 14:45:40 +02:00
parent dbe8d1f11e
commit f270686201
3 changed files with 119 additions and 154 deletions

View File

@@ -423,7 +423,7 @@ void DBUpdater<T>::ApplyFile(DatabaseWorkerPool<T>& pool, std::string const& hos
args.emplace_back(database);
// Invokes a mysql process which doesn't leak credentials to logs
int const ret = Trinity::StartProcess(DBUpdaterUtil::GetCorrectedMySQLExecutable(), args,
int const ret = Trinity::StartProcess(DBUpdaterUtil::GetCorrectedMySQLExecutable(), std::move(args),
"sql.updates", "", true);
if (ret != EXIT_SUCCESS)