Set error message.

Patch by Shantonu Sen.

llvm-svn: 46715
This commit is contained in:
Devang Patel 2008-02-04 20:57:54 +00:00
parent 3342d4083f
commit 3d4f1b3695
1 changed files with 4 additions and 2 deletions

View File

@ -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;
} }