Skip to content

Commit b136742

Browse files
committed
fix: backport changes to ipc/process.cpp from bitcoin#22937
1 parent efe4c2d commit b136742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ipc/process.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class ProcessImpl : public Process
3030
return mp::SpawnProcess(pid, [&](int fd) {
3131
fs::path path = argv0_path;
3232
path.remove_filename();
33-
path.append(new_exe_name);
34-
return std::vector<std::string>{path.string(), "-ipcfd", strprintf("%i", fd)};
33+
path /= fs::PathFromString(new_exe_name);
34+
return std::vector<std::string>{fs::PathToString(path), "-ipcfd", strprintf("%i", fd)};
3535
});
3636
}
3737
int waitSpawned(int pid) override { return mp::WaitProcess(pid); }

0 commit comments

Comments
 (0)