lib/rio/piper.rb in rio-0.5.1 vs lib/rio/piper.rb in rio-0.6.0
- old
+ new
@@ -1,8 +1,8 @@
#--
# ===========================================================================
-# Copyright (c) 2005-2012 Christopher Kleckner
+# Copyright (c) 2005-2017 Christopher Kleckner
# All rights reserved
#
# This file is part of the Rio library for ruby.
#
# Rio is free software; you can redistribute it and/or modify
@@ -78,16 +78,13 @@
end
def rd() @rios[-1] end
def wr() @rios[0] end
def run
- #dups = @rios.map { |r| r.clone }
dups = @rios
(1...dups.size-1).each { |i| dups[i].w! }
(1...dups.size).each { |i|
- #p "#{dups[i-1].cx.inspect} > #{dups[i].cx.inspect}"
dups[i-1] > dups[i]
- #p dups[i-1].closed?
}
dups.each { |r| r.close.softreset }
dups[-1]
end