5 #ifndef BITCOIN_IPC_PROCESS_H 6 #define BITCOIN_IPC_PROCESS_H 28 virtual int spawn(
const std::string& new_exe_name,
const fs::path& argv0_path,
int& pid) = 0;
36 virtual bool checkSpawned(
int argc,
char* argv[],
int& fd) = 0;
44 #endif // BITCOIN_IPC_PROCESS_H virtual int waitSpawned(int pid)=0
Wait for spawned process to exit and return its exit code.
IPC process interface for spawning bitcoin processes and serving requests in processes that have been...
virtual ~Process()=default
virtual bool checkSpawned(int argc, char *argv[], int &fd)=0
Parse command line and determine if current process is a spawned child process.
virtual int spawn(const std::string &new_exe_name, const fs::path &argv0_path, int &pid)=0
Spawn process and return socket file descriptor for communicating with it.
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
std::unique_ptr< Process > MakeProcess()
Constructor for Process interface.