diff options
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(); |