From 9ef57d996bf205a8baab649569064a3436f3d0e7 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Tue, 23 Mar 2010 11:15:45 -0700 Subject: [PATCH] Enter chroot can return an error code on cleanup. We make cleanup best effort Review URL: http://codereview.chromium.org/1158006 --- enter_chroot.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/enter_chroot.sh b/enter_chroot.sh index 00b9e64794..3c196a9313 100755 --- a/enter_chroot.sh +++ b/enter_chroot.sh @@ -134,6 +134,10 @@ function setup_env { function teardown_env { # Only teardown if we're the last enter_chroot to die + # We should not return with an error if cleanup has an error. Cleanup is + # best effort only. + set +e + ( flock 200