diff options
author | Jamis Buck <jamis@37signals.com> | 2005-08-12 20:30:26 +0000 |
---|---|---|
committer | Jamis Buck <jamis@37signals.com> | 2005-08-12 20:30:26 +0000 |
commit | cc0105cef9212dd50dd86c62168f842370014b9e (patch) | |
tree | a5a1ce3b49cd3b97c203961fe0ff082bd4154ee6 /railties/bin | |
parent | eaadd18f3f2c8e59a79f451e706aa15447c10018 (diff) | |
download | rails-cc0105cef9212dd50dd86c62168f842370014b9e.tar.gz rails-cc0105cef9212dd50dd86c62168f842370014b9e.tar.bz2 rails-cc0105cef9212dd50dd86c62168f842370014b9e.zip |
Added -w flag to ps in process/reaper #1934 [Scott Barron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1995 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/bin')
-rwxr-xr-x | railties/bin/process/reaper | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/bin/process/reaper b/railties/bin/process/reaper index 3b58698653..409d3b3c50 100755 --- a/railties/bin/process/reaper +++ b/railties/bin/process/reaper @@ -29,7 +29,7 @@ class ProgramProcess def find_by_keyword(keyword) process_lines_with_keyword(keyword).split("\n").collect { |line| - next if line.include?("inq") || line.include?("ps -ax") || line.include?("grep") + next if line.include?("inq") || line.include?("ps -wwax") || line.include?("grep") pid, *command = line.split new(pid, command.join(" ")) }.compact @@ -37,7 +37,7 @@ class ProgramProcess private def process_lines_with_keyword(keyword) - `ps -ax -o 'pid command' | grep #{keyword}` + `ps -wwax -o 'pid command' | grep #{keyword}` end end @@ -128,4 +128,4 @@ end ProgramProcess.process_keywords("usr1", OPTIONS[:spinner]) if OPTIONS[:toggle_spin] ProgramProcess.process_keywords(OPTIONS[:action], OPTIONS[:dispatcher]) nudge(OPTIONS[:nudge], OPTIONS[:iterations]) if OPTIONS[:nudge] -ProgramProcess.process_keywords("usr1", OPTIONS[:spinner]) if OPTIONS[:toggle_spin]
\ No newline at end of file +ProgramProcess.process_keywords("usr1", OPTIONS[:spinner]) if OPTIONS[:toggle_spin] |