You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2018. It is now read-only.
IO#readlines blocks until #close is called on all the handles to the write side of the pipe, a long-running subprocess doesn't close its handle on the pipe until it exits, so the timeout loop gets jammed up there.
You might want to use IO#select instead, it supports a read timeout.
A better solution might be to use IO#read_nonblock to try to read a single character.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: