# File lib/thin/command.rb, line 24 def run shell_cmd = shellify trace shell_cmd trap('INT') {} # Ignore INT signal to pass CTRL+C to subprocess Open3.popen3(shell_cmd) do |stdin, stdout, stderr| log_info stdout.gets until stdout.eof? log_info stderr.gets until stderr.eof? end end