mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
rbenv-rehash: remove superfluous trap signals
A trap on the special signal EXIT is executed before the shell terminates. EXIT actually covers SIGINT and SIGTERM as well, and we don't need any extra traps for them. See bash(1) and "help trap" in bash.
This commit is contained in:
parent
4cc6665d0a
commit
0324b118ee
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ set +o noclobber
|
||||||
|
|
||||||
# If we were able to obtain a lock, register a trap to clean up the
|
# If we were able to obtain a lock, register a trap to clean up the
|
||||||
# prototype shim when the process exits.
|
# prototype shim when the process exits.
|
||||||
trap remove_prototype_shim SIGINT SIGTERM EXIT
|
trap remove_prototype_shim EXIT
|
||||||
|
|
||||||
remove_prototype_shim() {
|
remove_prototype_shim() {
|
||||||
rm -f "$PROTOTYPE_SHIM_PATH"
|
rm -f "$PROTOTYPE_SHIM_PATH"
|
||||||
|
|
Loading…
Reference in a new issue