summaryrefslogtreecommitdiff
path: root/tools/bit/command.cpp
diff options
context:
space:
mode:
authorChih-hung Hsieh <chh@google.com>2017-10-16 19:50:38 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-10-16 19:50:38 +0000
commitdecc397b267ca0769a2232ebaee6580bb082e0d1 (patch)
tree4c53ec713713792d1f276cb0a04498ba44abbf9d /tools/bit/command.cpp
parent4f4d64659abc0db7c3f9dc5a9ae3f14e61c6776b (diff)
parent9f004b17523494a0b123a0034742c47ff2880428 (diff)
Merge "Use -Werror in frameworks/base" am: 16fbd3a1d8 am: 0bfb717a37
am: 9f004b1752 Change-Id: I6517ee1689b0247caf830a6c3528bfa9bcf91f75
Diffstat (limited to 'tools/bit/command.cpp')
-rw-r--r--tools/bit/command.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/bit/command.cpp b/tools/bit/command.cpp
index 9a8449bf9356..1ff7c221b26e 100644
--- a/tools/bit/command.cpp
+++ b/tools/bit/command.cpp
@@ -105,7 +105,9 @@ get_command_output(const Command& command, int* err, bool quiet)
}
int fds[2];
- pipe(fds);
+ if (0 != pipe(fds)) {
+ return string();
+ }
pid_t pid = fork();