Skip to content

Commit e3eadf4

Browse files
committed
update comment about use_exec triggering
1 parent 93848e5 commit e3eadf4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

python/private/stage1_bootstrap_template.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,9 @@ command=(
233233
# See https://github.com/bazelbuild/rules_python/issues/2043#issuecomment-2215469971
234234
# for more information.
235235
#
236-
# However, when running a zip file, we need to clean up the workspace after the
237-
# process finishes so control must return here.
236+
# However, we can't use exec when there is cleanup to do afterwards. Control
237+
# must return to this process so it can run the trap handlers. Such cases
238+
# occur when zip mode or recreate_venv_at_runtime creates temporary files.
238239
if [[ "$use_exec" == "0" ]]; then
239240
"${command[@]}"
240241
exit $?

0 commit comments

Comments
 (0)