File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def initialize(&block)
6161
6262 @pid = Process . fork do
6363 Signal . trap ( :INT ) { ::Thread . current . raise ( Interrupt ) }
64- Signal . trap ( :INT ) { ::Thread . current . raise ( Terminate ) }
64+ Signal . trap ( :TERM ) { ::Thread . current . raise ( Terminate ) }
6565
6666 @channel . in . close
6767
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ def self.fork(**options)
6868 # We use `Thread.current.raise(...)` so that exceptions are filtered through `Thread.handle_interrupt` correctly.
6969 Signal . trap ( :INT ) { ::Thread . current . raise ( Interrupt ) }
7070 Signal . trap ( :TERM ) { ::Thread . current . raise ( Terminate ) }
71+ Signal . trap ( :HUP ) { ::Thread . current . raise ( Hangup ) }
7172
7273 # This could be a configuration option:
7374 ::Thread . handle_interrupt ( SignalException => :immediate ) do
You can’t perform that action at this time.
0 commit comments