diff options
author | Zachary Turner <zturner@google.com> | 2014-09-30 16:56:40 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2014-09-30 16:56:40 +0000 |
commit | c76a4452793688356a3ed4a563bbe2a714fec49c (patch) | |
tree | 513f2dec86be791babf2c4619a7860c714d42656 /lldb/source/Host/posix/HostProcessPosix.cpp | |
parent | f8d929dc827000d109a5c619648fa239b79a18e9 (diff) | |
download | bcm5719-llvm-c76a4452793688356a3ed4a563bbe2a714fec49c.tar.gz bcm5719-llvm-c76a4452793688356a3ed4a563bbe2a714fec49c.zip |
Fixup some minor issues with HostProcess.
llvm-svn: 218684
Diffstat (limited to 'lldb/source/Host/posix/HostProcessPosix.cpp')
-rw-r--r-- | lldb/source/Host/posix/HostProcessPosix.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Host/posix/HostProcessPosix.cpp b/lldb/source/Host/posix/HostProcessPosix.cpp index 13de84170ff..0d9f85377dd 100644 --- a/lldb/source/Host/posix/HostProcessPosix.cpp +++ b/lldb/source/Host/posix/HostProcessPosix.cpp @@ -100,6 +100,9 @@ lldb::pid_t HostProcessPosix::GetProcessId() const bool HostProcessPosix::IsRunning() const { + if (m_process == kInvalidPosixProcess) + return false; + // Send this process the null signal. If it succeeds the process is running. Error error = Signal(0); return error.Success(); |