13#include "llvm/ADT/STLExtras.h"
34 error.SetErrorString(
"HostProcessPosix refers to an invalid process");
44 if (-1 == ::kill(process, signo))
45 error.SetErrorToErrno();
60 return error.Success();
static llvm::raw_ostream & error(Stream &strm)
static const int kInvalidPosixProcess
lldb::process_t m_process
~HostProcessPosix() override
bool IsRunning() const override
llvm::Expected< HostThread > StartMonitoring(const Host::MonitorChildProcessCallback &callback) override
virtual Status Signal(int signo) const
lldb::pid_t GetProcessId() const override
Status Terminate() override
std::function< void(lldb::pid_t pid, int signal, int status)> MonitorChildProcessCallback
static llvm::Expected< HostThread > StartMonitoringChildProcess(const MonitorChildProcessCallback &callback, lldb::pid_t pid)
Start monitoring a child process.
A class that represents a running process on the host machine.