Navigation Menu

Skip to content

Commit

Permalink
Use more generic name for generic method
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 8, 2014
1 parent 0a16b0d commit 046fbf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/wikipedia-search/task.rb
Expand Up @@ -186,7 +186,7 @@ def define_local_droonga_tasks
@path.droonga.pages.to_s)
ensure
pids.each do |pid|
droonga_stop_engine(pid)
stop_process(pid)
end
end
end
Expand All @@ -205,7 +205,7 @@ def define_local_droonga_tasks
$stdin.gets
ensure
pids.each do |pid|
droonga_stop_engine(pid)
stop_process(pid)
end
end
end
Expand Down Expand Up @@ -277,7 +277,7 @@ def droonga_wait_engine_ready(node_id)
end
end

def droonga_stop_engine(pid)
def stop_process(pid)
Process.kill(:TERM, pid)
end
end
Expand Down

0 comments on commit 046fbf9

Please sign in to comment.