Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1084)

Unified Diff: src/scripts/enter_chroot.sh

Issue 1158006: Enter chroot can return an error code on cleanup. We make cleanup best effort (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/scripts/enter_chroot.sh
diff --git a/src/scripts/enter_chroot.sh b/src/scripts/enter_chroot.sh
index 00b9e647946a0c9aca588af00f9459171e24fb28..3c196a93136cd46c1c2257dd383092646308cd2c 100755
--- a/src/scripts/enter_chroot.sh
+++ b/src/scripts/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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698