lli: Check pipe creation for errors.

This is unlikely to ever fail, but ubuntu GCC warns when the return value is
unused.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2013-10-04 19:10:03 +00:00
parent ef522b4c9c
commit 33f362f549

View File

@ -34,8 +34,9 @@ void RemoteTargetExternal::create() {
int PipeFD[2][2];
pid_t ChildPID;
pipe(PipeFD[0]);
pipe(PipeFD[1]);
// Create two pipes.
if (pipe(PipeFD[0]) != 0 || pipe(PipeFD[1]) != 0)
perror("Error creating pipe: ");
ChildPID = fork();