aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit930a5ad6a52e36fa670e38d83e210a08ccde8d59 (patch)
tree38260d81fa4fa4bc9ff954d07e0f1e12c33a899a /lib/System
parente910e9d235e284366dea2debe6fcab329d264076 (diff)
downloadexternal_llvm-930a5ad6a52e36fa670e38d83e210a08ccde8d59.zip
external_llvm-930a5ad6a52e36fa670e38d83e210a08ccde8d59.tar.gz
external_llvm-930a5ad6a52e36fa670e38d83e210a08ccde8d59.tar.bz2
Set error message.
Patch by Shantonu Sen. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System')
-rw-r--r--lib/System/Unix/Program.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/System/Unix/Program.inc b/lib/System/Unix/Program.inc
index 033a8a4..91baefb 100644
--- 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;
}