adamwiggins / rush

Ruby replacement for bash+ssh
http://rush.heroku.com/
518 stars 73 forks source link

Rush::Connection::Local#read_proc_file fails for process names with blank spaces #10

Closed fabiokung closed 12 years ago

fabiokung commented 12 years ago

One example is coffee-resque, which sets the process name to something like resque-0.1.4: S.

The Rush code reading /proc//stat uses split(" "), which isn't enough when there are spaces in the process name. That causes an exception to be raised here, as the regexp doesn't match.