Adjust run_command function

This commit is contained in:
topjohnwu
2017-07-10 22:29:53 +08:00
parent 3d43c3c5bc
commit d75fa62cab
6 changed files with 15 additions and 15 deletions

View File

@ -82,10 +82,10 @@ ssize_t xxread(int fd, void *buf, size_t count) {
return ret;
}
int xpipe(int pipefd[2]) {
int ret = pipe(pipefd);
int xpipe2(int pipefd[2], int flags) {
int ret = pipe2(pipefd, flags);
if (ret == -1) {
PLOGE("pipe");
PLOGE("pipe2");
}
return ret;
}