Skip to content

Commit

Permalink
mach-engine: Correct the executable path
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed Mar 16, 2024
1 parent 4b4cb9c commit 17db4f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engines/mach-engine.cc
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class MachEngine : public IEngine
// Fork the process, in suspended mode
auto& conf = IConfiguration::getInstance();
auto argv = conf.getArgv();
rv = posix_spawn(&m_pid, argv[0], nullptr, &attr, (char* const*)argv, environ);
rv = posix_spawn(&m_pid, executable.c_str(), nullptr, &attr, (char* const*)argv, environ);
if (rv != 0)
{
error("posix_spawn");
Expand Down

0 comments on commit 17db4f0

Please sign in to comment.