1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

lli: Check pipe creation for errors.

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

llvm-svn: 191973
This commit is contained in:
Benjamin Kramer 2013-10-04 19:10:03 +00:00
parent 144af3df00
commit e679e3e35e

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();