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:
parent
144af3df00
commit
e679e3e35e
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user