summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2015-07-10 18:02:01 -0700
committerYabin Cui <yabinc@google.com>2015-07-10 18:02:01 -0700
commite7da7e9b27ca050a12efa36207ea6b9218cc684d (patch)
treee08b83605eaf300e2244562d5fcf563bdb911356
parentb89e81dcb9bfa707912d9e370949b250367b0998 (diff)
downloadandroid_system_extras-e7da7e9b27ca050a12efa36207ea6b9218cc684d.tar.gz
android_system_extras-e7da7e9b27ca050a12efa36207ea6b9218cc684d.tar.bz2
android_system_extras-e7da7e9b27ca050a12efa36207ea6b9218cc684d.zip
Simpleperf: remove abort in child process.
Bug: 22328419 Change-Id: I3521a246929c10dc1eb9c9dac75240197b5b0a40
-rw-r--r--simpleperf/workload.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/simpleperf/workload.cpp b/simpleperf/workload.cpp
index f8e4edde..999e315a 100644
--- a/simpleperf/workload.cpp
+++ b/simpleperf/workload.cpp
@@ -93,10 +93,11 @@ static void ChildProcessFn(std::vector<std::string>& args, int start_signal_fd,
TEMP_FAILURE_RETRY(write(exec_child_fd, &exec_child_failed, 1));
close(exec_child_fd);
errno = saved_errno;
- PLOG(FATAL) << "execvp(" << argv[0] << ") failed";
+ PLOG(ERROR) << "execvp(" << argv[0] << ") failed";
} else {
- PLOG(FATAL) << "child process failed to receive start_signal, nread = " << nread;
+ PLOG(DEBUG) << "child process failed to receive start_signal, nread = " << nread;
}
+ exit(1);
}
bool Workload::Start() {