Method: Spring::Client::Run#forward_signal
- Defined in:
- lib/spring/client/run.rb
#forward_signal(sig, pid) ⇒ Object
170 171 172 173 174 175 176 177 |
# File 'lib/spring/client/run.rb', line 170 def forward_signal(sig, pid) kill(sig, pid) rescue Errno::ESRCH # If the application process is gone, then don't block the # signal on this process. trap(sig, 'DEFAULT') Process.kill(sig, Process.pid) end |