lib/yahns/daemon.rb in yahns-1.16.0 vs lib/yahns/daemon.rb in yahns-1.17.0
- old
+ new
@@ -30,10 +30,9 @@
# \_ yahns master - writes to pipe when ready
# 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
else
rd.close # yahns master does not read