python: Ignore SIGINT while running wrapped program from zip
This is a proposal to resolve https://github.com/bazelbuild/bazel/issues/20255
python_bootstrap_template has been updated to ignore SIGINT while the wrapped program is running, to not interfere with its potential custom handling.
👋 @iancha1992 I'm not sure who to reach out to. Could you help me find someone who could take a look at this? Thank you!
cc: @fmeum @rickeylev
👋 @fmeum @rickeylev would either of you have the time to see if what I'm suggesting is reasonable?
@aignas Could you take over here?
This looks like a reasonable change, could you create a PR against the bootstrap template that is in the rules_python please? The latest versions of rules_python use the copy that is there.
It would be also great if we could add a test to check the behaviour. If I understand correctly, we could create a special py_binary that could be invoked it py_test via subprocess.