mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-30 20:34:21 +00:00
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:
parent
ef522b4c9c
commit
33f362f549
@ -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…
x
Reference in New Issue
Block a user