Reverting 180831 as it crashes TestDefaultConstructorForAPIObjects.py

llvm-svn: 180868
This commit is contained in:
Daniel Malea
2013-05-01 19:11:56 +00:00
parent df6bee8081
commit 54e39db805
14 changed files with 30 additions and 221 deletions

View File

@@ -785,21 +785,13 @@ SBProcess::Kill ()
SBError
SBProcess::Detach ()
{
// FIXME: This should come from a process default.
bool keep_stopped = false;
Detach (keep_stopped);
}
SBError
SBProcess::Detach (bool keep_stopped)
{
SBError sb_error;
ProcessSP process_sp(GetSP());
if (process_sp)
{
Mutex::Locker api_locker (process_sp->GetTarget().GetAPIMutex());
sb_error.SetError (process_sp->Detach(keep_stopped));
sb_error.SetError (process_sp->Detach());
}
else
sb_error.SetErrorString ("SBProcess is invalid");