repo.or.cz
/
unicorn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
port test/unit/test_ccc.rb to Perl 5
[unicorn.git]
/
t
/
reopen-logs.ru
blob
488da859788555461436cd85378309115e95f03e
1
# frozen_string_literal: false
2
use Rack::ContentLength
3
use Rack::ContentType, "text/plain"
4
run lambda { |env|
5
6
# our File objects for stderr/stdout should always have #path
7
# and be sync=true
8
ok = $stderr.sync &&
9
$stdout.sync &&
10
String === $stderr.path &&
11
String === $stdout.path
12
13
[ 200, {}, [ "#{ok}\n" ] ]
14
}