about summary refs log tree commit homepage
path: root/lib/yahns/daemon.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yahns/daemon.rb')
-rw-r--r--lib/yahns/daemon.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/yahns/daemon.rb b/lib/yahns/daemon.rb
index d12ff69..df8b573 100644
--- a/lib/yahns/daemon.rb
+++ b/lib/yahns/daemon.rb
@@ -25,6 +25,7 @@ module Yahns::Daemon # :nodoc:
       # We cannot use Yahns::Sigevent (eventfd) here because we need
       # to detect EOF on unexpected death, not just read/write
       rd, wr = IO.pipe
+      rd.close_on_exec = wr.close_on_exec = true
       grandparent = $$
       if fork
         wr.close # grandparent does not write