lib/rflow/daemon_process.rb in rflow-1.0.0a2 vs lib/rflow/daemon_process.rb in rflow-1.0.0a3
- old
+ new
@@ -144,10 +144,10 @@
@daemon_pipe_w.close rescue nil
end
end
def signal_subprocesses(signal)
- subprocesses.each do |p|
+ subprocesses.reject {|p| p.pid.nil? }.each do |p|
RFlow.logger.info "Signaling #{p.name} with #{signal}"
Process.kill(signal, p.pid)
end
end
end