int LoaderMount::CreatePipe(int (*pipe_fd)[2]) {
- *pipe_fd[0] = -1;
- *pipe_fd[1] = -1;
+ (*pipe_fd)[0] = -1;
+ (*pipe_fd)[1] = -1;
if (pipe(*pipe_fd) == -1) {
_E("pipe() is failed. errno(%d)", errno);
return -1;
}
- if (fcntl(*pipe_fd[0], F_SETPIPE_SZ, Socket::kSocketMaxBufferSize) == -1)
- _E("Failed to set pipe size. errno(%d)", errno);
+ if (fcntl((*pipe_fd)[0], F_SETPIPE_SZ, Socket::kSocketMaxBufferSize) == -1)
+ _E("Failed to set pipe size. pipe_fd(%d), errno(%d)", (*pipe_fd)[0], errno);
- if (fcntl(*pipe_fd[1], F_SETPIPE_SZ, Socket::kSocketMaxBufferSize) == -1)
- _E("Failed to set pipe size. errno(%d)", errno);
+ if (fcntl((*pipe_fd)[1], F_SETPIPE_SZ, Socket::kSocketMaxBufferSize) == -1)
+ _E("Failed to set pipe size. pipe_fd(%d), errno(%d)", (*pipe_fd)[1], errno);
return 0;
}