summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2008-02-04 20:57:54 +0000
committerDevang Patel <dpatel@apple.com>2008-02-04 20:57:54 +0000
commit3d4f1b3695f8fc6c8feed2f0f7c01879554151b8 (patch)
tree51cc9e2c6818385c1205847797ce19337687ccc6 /llvm/lib/System
parent3342d4083f27003c0fa52b1d9ff87b75ffbf9b20 (diff)
downloadbcm5719-llvm-3d4f1b3695f8fc6c8feed2f0f7c01879554151b8.tar.gz
bcm5719-llvm-3d4f1b3695f8fc6c8feed2f0f7c01879554151b8.zip
Set error message.
Patch by Shantonu Sen. llvm-svn: 46715
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Unix/Program.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc
index 033a8a45947..91baefb3294 100644
--- a/llvm/lib/System/Unix/Program.inc
+++ b/llvm/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;
}
OpenPOWER on IntegriCloud