about summary refs log tree commit homepage
path: root/lib/dtas/sink.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-08-25 22:40:08 +0000
committerEric Wong <normalperson@yhbt.net>2013-08-25 23:13:56 +0000
commit6ad75d32c2389d3bfb358c60b77715db71c1f413 (patch)
tree34ff8b62e2095e95e12717fb6816d33d648db8e5 /lib/dtas/sink.rb
parentdfbefc7cb72b2c60e2cb076b33a5964e1be21f33 (diff)
downloaddtas-6ad75d32c2389d3bfb358c60b77715db71c1f413.tar.gz
We do not need a respawn flag, since we already infer expected vs
unexpected sink death by checking the @targets array.

Additionally, next_source must always check @current before
calling, and not clobber the existing @current because that
would cause two source processes writing into the same pipe.
Diffstat (limited to 'lib/dtas/sink.rb')
-rw-r--r--lib/dtas/sink.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/dtas/sink.rb b/lib/dtas/sink.rb
index e28d479..836b0f1 100644
--- a/lib/dtas/sink.rb
+++ b/lib/dtas/sink.rb
@@ -16,7 +16,6 @@ class DTAS::Sink # :nodoc:
   attr_accessor :active  # boolean
   attr_accessor :name
   attr_accessor :nonblock
-  attr_accessor :respawn
 
   include DTAS::Command
   include DTAS::Process
@@ -30,7 +29,6 @@ class DTAS::Sink # :nodoc:
     "nonblock" => false,
     "pipe_size" => nil,
     "active" => false,
-    "respawn" => false,
   })
 
   DEVFD_RE = %r{/dev/fd/([a-zA-Z]\w*)\b}