diff options
author | Shayon Mukherjee <dev@shayon.me> | 2017-12-23 10:39:29 -0800 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2018-01-15 15:56:19 -0800 |
commit | cc38f846d2731fd73a28379a93b5ddebaab09d30 (patch) | |
tree | 11deafa8321c95e89a0af6107579b1288516dc50 /lib | |
parent | 723608f45866cee0f1b315551a8dde6a99efebc6 (diff) | |
download | bundler-cc38f846d2731fd73a28379a93b5ddebaab09d30.tar.gz |
Only trap INT signal and set to DEFAULT
Before, we were trapping every non reserved signal
and setting it to DEFAULT. This meant, if there was
a prior signal set on a process, we were resetting it
with DEFAULT
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/cli/exec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bundler/cli/exec.rb b/lib/bundler/cli/exec.rb index 2fdc614fbb..d6ac453676 100644 --- a/lib/bundler/cli/exec.rb +++ b/lib/bundler/cli/exec.rb @@ -6,7 +6,7 @@ module Bundler class CLI::Exec attr_reader :options, :args, :cmd - RESERVED_SIGNALS = %w[SEGV BUS ILL FPE VTALRM KILL STOP].freeze + TRAPPED_SIGNALS = %w[INT].freeze def initialize(options, args) @options = options @@ -70,8 +70,7 @@ module Bundler ui = Bundler.ui Bundler.ui = nil require "bundler/setup" - signals = Signal.list.keys - RESERVED_SIGNALS - signals.each {|s| trap(s, "DEFAULT") } + TRAPPED_SIGNALS.each {|s| trap(s, "DEFAULT") } Kernel.load(file) rescue SystemExit, SignalException raise |