Fix command exit code handling under Ruby 1.9+
The exit codes from executed commands aren't retrieved properly, this can be fixed for Ruby 1.9+.
#1 Updated by Aaron Stone over 8 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
Applied in changeset bbafbc039a20baa6b3b62622afc9a145b4fabc22.
#2 Updated by Dominic Cleal over 8 years ago
- Assignee set to Aaron Stone
fixes #6585 - Update Proxy::Util::CommandTask to handle Ruby 1.8 and 1.9+
In this update, use 'true' and 'false' to test $? return codes 0 and 1, respectively.
In Ruby 1.8.x, the return code from Open3.popen3 is always 0, some errors will not be caught.