From cc0105cef9212dd50dd86c62168f842370014b9e Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Fri, 12 Aug 2005 20:30:26 +0000 Subject: 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 --- railties/bin/process/reaper | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties/bin') 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] -- cgit v1.2.3