mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-10 12:55:00 +00:00
Set error message.
Patch by Shantonu Sen. llvm-svn: 46715
This commit is contained in:
parent
3342d4083f
commit
3d4f1b3695
@ -242,9 +242,11 @@ Program::ExecuteAndWait(const Path& path,
|
||||
// Wait for child to die
|
||||
if (wait(&status) != child)
|
||||
MakeErrMsg(ErrMsg, "Child timed out but wouldn't die");
|
||||
else
|
||||
MakeErrMsg(ErrMsg, "Child timed out", 0);
|
||||
|
||||
return -1; // Timeout detected
|
||||
} else {
|
||||
} else if (errno != EINTR) {
|
||||
MakeErrMsg(ErrMsg, "Error waiting for child process");
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user