Fix bug in ProcessPOSIX::IsAlive() exposed by r178324

- process in 'unloaded' state was (incorrectly) considered to be alive by POSIX plugin
- above caused a regression in TestProcessLaunch cases

llvm-svn: 178493
This commit is contained in:
Daniel Malea 2013-04-01 19:48:37 +00:00
parent e60fc2f676
commit 335bf6fb76
1 changed files with 4 additions and 1 deletions

View File

@ -425,7 +425,10 @@ bool
ProcessPOSIX::IsAlive()
{
StateType state = GetPrivateState();
return state != eStateDetached && state != eStateExited && state != eStateInvalid;
return state != eStateDetached
&& state != eStateExited
&& state != eStateInvalid
&& state != eStateUnloaded;
}
size_t