From e6d7663889aa8308e244da821f579b6a314e8a33 Mon Sep 17 00:00:00 2001 From: Paul Crowley Date: Fri, 30 Nov 2018 11:43:47 -0800 Subject: [PATCH] Clean up use of pipe Don't duplicate what's already in unique_fd.h Also, code that tries to handle weird stdout condition won't work because of cloexec; just don't try that. My tests: - Ensure Marlin device boots and vold_prepare_subdirs is called successfully - Try adb shell sm set-virtual-disk true, see that eg sgdisk output is logged. Bug: 26735063 Bug: 113796163 Test: details in commit Change-Id: I5698ba0b4c8bd692a740a1bd445e677ad4815d11 --- Utils.cpp | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/Utils.cpp b/Utils.cpp index c0b7f01..f72edbe 100644 --- a/Utils.cpp +++ b/Utils.cpp @@ -297,29 +297,25 @@ status_t ForkExecvp(const std::vector& args, std::vector(argv.data())); - PLOG(ERROR) << "Failed to exec"; + PLOG(ERROR) << "exec in ForkExecvp"; _exit(EXIT_FAILURE); } if (pid == -1) {