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
/
detach.ru
blob
8d359515a6ea0f43a29fcd4152c83109a21cc1e0
1
# frozen_string_literal: false
2
use Rack::ContentType, "text/plain"
3
fifo_path = ENV["TEST_FIFO"] or abort "TEST_FIFO not set"
4
run lambda { |env|
5
pid = fork do
6
File.open(fifo_path, "wb") do |fp|
7
fp.write "HIHI"
8
end
9
end
10
Process.detach(pid)
11
[ 200, {}, [ pid.to_s ] ]
12
}