if (ret != -1)
{
- status = checkStatus( status );
+ _exitStatus = checkStatus( status );
}
pid = -1;
- return status;
- }
- else
- {
- return _exitStatus;
}
+
+ return _exitStatus;
}
// if 'launch' is logged, completion should be logged,
// even if successfull.
DBG << "Pid " << pid << " successfully completed" << endl;
- //_execError = _("Command successfully completed.");
+ _execError.clear(); // empty if running or successfully completed
}
}
else if (WIFSIGNALED (status))