New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Process#stop does not kill process tree #66
Comments
But should it? Doesn't happen on Unix either: require 'childprocess'
require 'fileutils'
File.open("test.sh", "w") do |io|
io << "#/bin/bash\nruby -e sleep"
end
FileUtils.chmod 0755, 'test.sh'
proc = ChildProcess.build('./test.sh')
proc.io.inherit!
proc.start
sleep 3
proc.stop
puts `ps auxww | grep sleep` |
That was simple enough to solve for Unix (now in the |
This should be fixed now for all platforms, and I've pushed v4.1.0.rc1 which includes the changes. The only problem is JRuby + ProcessBuilder, which is currently ChildProcess' weapon of choice on Unix. However, it looks like the latest JRuby (at least 1.7.9) now works well with I'm also not completely confident about the implications of this change, so will do some more testing before pushing a real release. |
The text was updated successfully, but these errors were encountered: