lib/rflow/daemon_process.rb in rflow-1.3.1 vs lib/rflow/daemon_process.rb in rflow-1.3.2
- old
+ new
@@ -127,11 +127,11 @@
# set the visible process name to match the process's name
$0 = @name
end
def handle_signals
- ['SIGTERM', 'SIGINT', 'SIGQUIT', 'SIGCHLD'].each do |signal|
+ ['SIGTERM', 'SIGINT', 'SIGQUIT', 'SIGHUP', 'SIGCHLD'].each do |signal|
trap_signal(signal) do |return_code|
exit_status = if signal == 'SIGCHLD'
pid, status = Process.wait2
status.exitstatus || 0
else
@@ -157,10 +157,10 @@
# don't tell child processes to dump, too spammy
end
end
def unhandle_signals
- ['SIGTERM', 'SIGINT', 'SIGQUIT', 'SIGCHLD', 'SIGUSR1', 'SIGUSR2', SIGINFO].each do |signal|
+ ['SIGTERM', 'SIGINT', 'SIGQUIT', 'SIGCHLD', 'SIGHUP', 'SIGUSR1', 'SIGUSR2', SIGINFO].each do |signal|
Signal.trap signal, 'DEFAULT'
end
end
def trap_signal(signal)