Class: Daemons::Application

Inherits:
Object
  • Object
show all
Defined in:
lib/daemon_kit/patches/force_kill_wait.rb

Instance Method Summary collapse

Instance Method Details

#send_sig(sig) ⇒ Object

Send signal to the process, rescue if process deson’t exist



114
115
116
# File 'lib/daemon_kit/patches/force_kill_wait.rb', line 114

def send_sig(sig)
  Process.kill(sig, @pid.pid) rescue Errno::ESRCH
end