Core/Common: Catch and log child process creation errors

(cherry picked from commit fff12eafdf)
This commit is contained in:
Shauren
2024-09-23 14:17:33 +02:00
parent 25be3cdc3b
commit 9c22e1df93
2 changed files with 30 additions and 14 deletions

View File

@@ -391,7 +391,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(), std::move(args),
int32 const ret = Trinity::StartProcess(DBUpdaterUtil::GetCorrectedMySQLExecutable(), std::move(args),
"sql.updates", "", true);
if (ret != EXIT_SUCCESS)