about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-02-04 10:30:25 +0000
committerEric Wong <normalperson@yhbt.net>2013-02-04 10:30:25 +0000
commita09a622b4988b5eee819487c96a4563e71f753f7 (patch)
tree10ff1eb144f3e04bd96662495c68cfa1d7468e5b
parent64765b95df06256d39daefdeebde97c874770131 (diff)
downloadunicorn-a09a622b4988b5eee819487c96a4563e71f753f7.tar.gz
POSIX already stipulates tee(1) must be unbuffered.  I think my
decision to use utee was due to my being misled by a bug in
older curl where -N did not work as advertised (but --no-buffer
did).

N.B. we don't use tee in unicorn tests, this just matches
commit cbff7b0892148b037581541184364e0e91d2a138 in rainbows
-rwxr-xr-xt/bin/utee12
1 files changed, 0 insertions, 12 deletions
diff --git a/t/bin/utee b/t/bin/utee
deleted file mode 100755
index 7b61fea..0000000
--- a/t/bin/utee
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env ruby
-# -*- encoding: binary -*-
-# tee(1) as distributed on most(all?) systems is buffered in luserspace
-# this only does unbuffered writes (with line-buffered input) to make
-# test output appear in real-time
-$stdin.binmode
-$stdout.binmode
-fp = File.open(ARGV.shift, "wb")
-$stdin.each_line do |line|
-  fp.syswrite line
-  $stdout.syswrite line
-end