8 9 10 11 12 13 14 15 16 17 18 19
# File 'lib/rubrowser/monitor.rb', line 8 def run(path: '', port: 8080) $rd, $wr = IO.pipe if fork $rd.close Trace.new(path: path).run else $wr.close Server.new(port: port).run exit end end