13#include "llvm/ADT/STLExtras.h"
34 "HostProcessPosix refers to an invalid process");
43 if (-1 == ::kill(process, signo))
59 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.
static Status FromErrno()
Set the current error to errno.
static Status FromErrorString(const char *str)
A class that represents a running process on the host machine.