mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
Add a Kill() function to the Program class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81246 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -283,6 +283,16 @@ Program::Wait(unsigned secondsToWait,
|
||||
|
||||
}
|
||||
|
||||
bool
|
||||
Program::Kill(std::string* ErrMsg) {
|
||||
if (Pid_ == 0) {
|
||||
MakeErrMsg(ErrMsg, "Process not started!");
|
||||
return true;
|
||||
}
|
||||
|
||||
return (kill(Pid_, SIGKILL) == 0);
|
||||
}
|
||||
|
||||
bool Program::ChangeStdinToBinary(){
|
||||
// Do nothing, as Unix doesn't differentiate between text and binary.
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user