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
|
// Wait for child to die
|
||||||
if (wait(&status) != child)
|
if (wait(&status) != child)
|
||||||
MakeErrMsg(ErrMsg, "Child timed out but wouldn't die");
|
MakeErrMsg(ErrMsg, "Child timed out but wouldn't die");
|
||||||
|
else
|
||||||
|
MakeErrMsg(ErrMsg, "Child timed out", 0);
|
||||||
|
|
||||||
return -1; // Timeout detected
|
return -1; // Timeout detected
|
||||||
} else {
|
} else if (errno != EINTR) {
|
||||||
MakeErrMsg(ErrMsg, "Error waiting for child process");
|
MakeErrMsg(ErrMsg, "Error waiting for child process");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue