1 # we do not want Rack::Lint or anything to protect us
2 use Rack::ContentLength
3 use Rack::ContentType, "text/plain"
4 trap(:CHLD) { $stderr.puts Process.waitpid2(-1).inspect }
6 time = ENV["nr"] || '15'
7 pid = fork { exec('sleep', time) }
8 run lambda { |env| [ 200, {}, [ "#{pid}\n" ] ] }