From e0c346d479f86a4543c349fef22e3be9e6207b02 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 18 Nov 2016 14:49:21 +1100 Subject: [PATCH] Turn off tracing around pid/chroot check In the error case, we get a spew of output as this check goes though every pid checking if its in the chroot. Disable tracing around the call. Change-Id: Ie84f12974755c0c2c51d7e7697337ed9b32a4a1c --- lib/common-functions | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/common-functions b/lib/common-functions index 92c42f881..6762139f1 100644 --- a/lib/common-functions +++ b/lib/common-functions @@ -135,6 +135,10 @@ function eval_run_d () { } function kill_chroot_processes () { + local xtrace + xtrace=$(set +o | grep xtrace) + set +o xtrace + if [ -z "${1}" ]; then echo "ERROR: no chroot directory specified" exit 1 @@ -149,6 +153,8 @@ function kill_chroot_processes () { sudo kill $pid fi done + + $xtrace } function cleanup_build_dir () {