integration: move pid back to end

This commit is contained in:
Jake Hillion 2023-10-26 08:23:26 -07:00 committed by Jake Hillion
parent 6e1635ce1e
commit 315a5cde6c

View File

@ -188,7 +188,6 @@ OidProc OidIntegration::runOidOnProcess(OidOpts opts,
"--dump-json"s, "--dump-json"s,
"--script-source"s, opts.scriptSource, "--script-source"s, opts.scriptSource,
"--mode=strict"s, "--mode=strict"s,
"--pid"s, std::to_string(targetProcess.id()),
}; };
// clang-format on // clang-format on
@ -212,6 +211,9 @@ OidProc OidIntegration::runOidOnProcess(OidOpts opts,
oid_args.emplace_back(*suffix); oid_args.emplace_back(*suffix);
} }
oid_args.emplace_back("--pid");
oid_args.emplace_back(std::to_string(targetProcess.id()));
if (verbose) { if (verbose) {
std::cerr << "Running: " << targetExe << "\n"; std::cerr << "Running: " << targetExe << "\n";
std::cerr << "Running: " << oidExe << " "; std::cerr << "Running: " << oidExe << " ";