A bit different testcase that also doesn't interrupt on Windows: ``` require 'timeout' Timeout.timeout(1) do STDIN.read end ```