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