lib/bluepill/process.rb in bluepill-0.0.58 vs lib/bluepill/process.rb in bluepill-0.0.59

- old
+ new

@@ -365,12 +365,14 @@ def monitor_children? !!self.monitor_children end def signal_process(code) - ::Process.kill(code.to_s.upcase, actual_pid) + code = code.to_s.upcase if code.is_a?(String) + ::Process.kill(code, actual_pid) true - rescue + rescue Exception => e + logger.err "Failed to signal process #{actual_pid} with code #{code}: #{e}" false end def cache_actual_pid? !!@cache_actual_pid