about summary refs log tree commit homepage
path: root/lib/dtas/sink.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-06 23:15:36 +0000
committerEric Wong <e@80x24.org>2015-09-06 23:16:43 +0000
commit856b1c7064155e59c84942a7e8cd36128b6be34e (patch)
treec45027bedec2caa280c26c815f45a8f4d1b8a120 /lib/dtas/sink.rb
parentc3bb7810709a99a9886c7f96aed6fa62690a12cb (diff)
downloaddtas-856b1c7064155e59c84942a7e8cd36128b6be34e.tar.gz
This allows us to avoid wasting time reopening the same
device over and over again.
Diffstat (limited to 'lib/dtas/sink.rb')
-rw-r--r--lib/dtas/sink.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dtas/sink.rb b/lib/dtas/sink.rb
index 70d6861..0bf49f4 100644
--- a/lib/dtas/sink.rb
+++ b/lib/dtas/sink.rb
@@ -91,7 +91,7 @@ class DTAS::Sink # :nodoc:
         w.sink = self
         rv << w
       end
-      opts[:in] = "/dev/null"
+      opts[:in] = DTAS.null
 
       # map to real /dev/fd/* values and setup proper redirects
       cmd = cmd.gsub(DEVFD_RE) do