mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Set error message.
Patch by Shantonu Sen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46715 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6cc24947b6
commit
a1e4bba98a
@ -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…
x
Reference in New Issue
Block a user