support for Rack hijack in request and response
[unicorn.git] / t / detach.ru
blobbbd998ebb2de4df6a7a615823532d2c9252c91cd
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 ] ]