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