Looks like subexec's timeout functionality doesn't work unless you specify a logfile. In https://github.com/nulayer/subexec/blob/master/lib/subexec.rb#L80, #readlines blocks. ``` $ time ruby -r subexec -e 'Subexec.run "echo 'hello' && sleep 3", :timeout => 1' 0.30s user 0.06s system 10% cpu 3.369 total ```
Looks like subexec's timeout functionality doesn't work unless you specify a logfile.
In https://github.com/nulayer/subexec/blob/master/lib/subexec.rb#L80, #readlines blocks.