subexec icon indicating copy to clipboard operation
subexec copied to clipboard

Subexec spawns n subprocess with an optional timeout

Results 4 subexec issues
Sort by recently updated
recently updated
newest added

This gem doesn't have a good implementation: - It uses `sleep 0.01` for waiting for the command to finish, which is very CPU heavy and definitively not the right way...

Using `RUBY_PLATFORM` under JRuby always returns java therefore this should never be used to detect the OS under JRuby. This causes problems under Windows and JRuby because subexec detects JRuby...

when i call the Subexec.run more times later~ memory is leaked~ i think this is the ruby vm's bug~ p.s.: 1、my environment is window x64~ 2、test ruby version is 1.9.3&2.0.0

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...