diff --git a/tools/lli/Unix/RemoteTargetExternal.inc b/tools/lli/Unix/RemoteTargetExternal.inc index f1c3badb2f5..e245f7e3a81 100644 --- a/tools/lli/Unix/RemoteTargetExternal.inc +++ b/tools/lli/Unix/RemoteTargetExternal.inc @@ -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();