projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cc2494
)
Set error message.
author
Devang Patel
<dpatel@apple.com>
Mon, 4 Feb 2008 20:57:54 +0000
(20:57 +0000)
committer
Devang Patel
<dpatel@apple.com>
Mon, 4 Feb 2008 20:57:54 +0000
(20:57 +0000)
Patch by Shantonu Sen.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46715
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/System/Unix/Program.inc
patch
|
blob
|
history
diff --git
a/lib/System/Unix/Program.inc
b/lib/System/Unix/Program.inc
index 033a8a45947ca47339c2e2458ad0317cb20445d1..91baefb3294e996a8b792a26c3d5b5f0e07d8aa2 100644
(file)
--- a/
lib/System/Unix/Program.inc
+++ b/
lib/System/Unix/Program.inc
@@
-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;
}