Skip to content
Browse files

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
  • Loading branch information...
1 parent eaadd18 commit cc0105cef9212dd50dd86c62168f842370014b9e @jamis jamis committed
Showing with 5 additions and 3 deletions.
  1. +2 −0 railties/CHANGELOG
  2. +3 −3 railties/bin/process/reaper
View
2 railties/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Added -w flag to ps in process/reaper #1934 [Scott Barron]
+
* Add integration with SwitchTower (rake tasks, default deploy.rb recipe)
* Allow ERb in the database.yml file (just like with fixtures), so you can pull out the database configuration in environment variables #1822 [Duane Johnson]
View
6 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]
+ProgramProcess.process_keywords("usr1", OPTIONS[:spinner]) if OPTIONS[:toggle_spin]

0 comments on commit cc0105c

Please sign in to comment.
Something went wrong with that request. Please try again.