Recommitting r180831 with trivial fix - remember to return errors if you compute.

llvm-svn: 180898
This commit is contained in:
Jim Ingham
2013-05-02 00:27:30 +00:00
parent ae4a5567e1
commit acff895015
14 changed files with 221 additions and 30 deletions

View File

@@ -785,13 +785,21 @@ SBProcess::Kill ()
SBError
SBProcess::Detach ()
{
// FIXME: This should come from a process default.
bool keep_stopped = false;
return 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());
sb_error.SetError (process_sp->Detach(keep_stopped));
}
else
sb_error.SetErrorString ("SBProcess is invalid");