diff options
author | Eric Wong <e@80x24.org> | 2014-02-08 02:42:22 -0500 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-02-08 08:34:47 +0000 |
commit | 28851b4f7296cd65149ef81171d1e7db1b0a256b (patch) | |
tree | 13c0217252198b6ec4ffe4bd3aca36671c9ebfe7 | |
parent | 6cde1bf46f25fa46eb10acf0948a0a6290573964 (diff) | |
download | yahns-28851b4f7296cd65149ef81171d1e7db1b0a256b.tar.gz |
This will lead to ENOENT when placing writer into kqueue changelist via kevent(2)
-rw-r--r-- | lib/yahns/queue_quitter_pipe.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yahns/queue_quitter_pipe.rb b/lib/yahns/queue_quitter_pipe.rb index 1aa0643..e18e249 100644 --- a/lib/yahns/queue_quitter_pipe.rb +++ b/lib/yahns/queue_quitter_pipe.rb @@ -5,9 +5,8 @@ class Yahns::QueueQuitter # :nodoc: attr_reader :to_io def initialize - reader, @to_io = IO.pipe + @reader, @to_io = IO.pipe @to_io.close_on_exec = true - reader.close end def yahns_step @@ -19,6 +18,7 @@ class Yahns::QueueQuitter # :nodoc: end def close + @reader.close @to_io.close end end |