lib/rflow/child_process.rb in rflow-1.0.0a3 vs lib/rflow/child_process.rb in rflow-1.0.0a4
- old
+ new
@@ -76,9 +76,11 @@
# set the visible process name to match the child's name
$0 += " #{@name}"
end
def handle_signals
+ Signal.trap 'SIGCHLD', 'DEFAULT' # make sure child process can run subshells
+
['SIGTERM', 'SIGINT', 'SIGQUIT'].each do |signal|
trap_signal(signal) do
shutdown! signal
exit! 0
end