Skip to content

Commit

Permalink
test: add parent starting directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sangjanai committed Jan 15, 2025
1 parent b038033 commit 9fb8fd8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/llama_engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,7 @@ bool LlamaEngine::SpawnLlamaServer(const Json::Value& json_params) {
std::string wcmds =
load_opt_.engine_path.string() + "/" + exe_w + " " + params;
LOG_INFO << "wcmds: " << wcmds;
LOG_INFO << "deps_path: " << load_opt_.deps_path.c_str();
std::vector<wchar_t> mutable_cmds(wcmds.begin(), wcmds.end());
mutable_cmds.push_back(L'\0');
// Create child process
Expand All @@ -1442,9 +1443,9 @@ bool LlamaEngine::SpawnLlamaServer(const Json::Value& json_params) {
FALSE, // Set handle inheritance
0, // No creation flags
NULL, // Use parent's environment block
NULL, // Use parent's starting directory
&si, // Pointer to STARTUPINFO structure
&s.pi)) // Pointer to PROCESS_INFORMATION structure
load_opt_.deps_path.c_str(), // Use parent's starting directory
&si, // Pointer to STARTUPINFO structure
&s.pi)) // Pointer to PROCESS_INFORMATION structure
{
std::cout << "Could not start server: " << GetLastError() << std::endl;
return false;
Expand Down

0 comments on commit 9fb8fd8

Please sign in to comment.