diff options
Diffstat (limited to 'lib/zbatery.rb')
-rw-r--r-- | lib/zbatery.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/zbatery.rb b/lib/zbatery.rb index 65c9d0c..a4d20e0 100644 --- a/lib/zbatery.rb +++ b/lib/zbatery.rb @@ -92,7 +92,11 @@ module Rainbows end if ready_pipe - ready_pipe.syswrite($$.to_s) + begin + ready_pipe.syswrite($$.to_s) + rescue => e + logger.warn("grandparent died too soon?: #{e.message} (#{e.class})") + end ready_pipe.close self.ready_pipe = nil end |