aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-11-07 17:57:21 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-11-07 17:57:21 +0000
commit850b9c75064037621587b88724ca75df87f684a8 (patch)
treea920e47ea7335a7faef583416dd9b1f664d306f2 /railties/lib
parentb49de6b74b4d96e64bf771c3c2111e68dc18dafa (diff)
downloadrails-850b9c75064037621587b88724ca75df87f684a8.tar.gz
rails-850b9c75064037621587b88724ca75df87f684a8.tar.bz2
rails-850b9c75064037621587b88724ca75df87f684a8.zip
Remove bogus hyphen from script/process/reaper calls to 'ps'. Closes #2767.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2922 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/commands/process/reaper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/commands/process/reaper.rb b/railties/lib/commands/process/reaper.rb
index d1aeee308f..6da2191d1b 100644
--- a/railties/lib/commands/process/reaper.rb
+++ b/railties/lib/commands/process/reaper.rb
@@ -32,7 +32,7 @@ class ProgramProcess
# ProgramProcess.find_by_keyword("basecamp")
def find_by_keyword(keyword)
process_lines_with_keyword(keyword).split("\n").collect { |line|
- next if line =~ /inq|ps -axww|grep|spawn-fcgi|spawner|reaper/
+ next if line =~ /inq|ps axww|grep|spawn-fcgi|spawner|reaper/
pid, *command = line.split
new(pid, command.join(" "))
}.compact
@@ -40,7 +40,7 @@ class ProgramProcess
private
def process_lines_with_keyword(keyword)
- `ps -axww -o 'pid command' | grep #{keyword}`
+ `ps axww -o 'pid command' | grep #{keyword}`
end
end