Skip to content

Commit

Permalink
supervisor: Clear previous worker pids when receives kill signals. ref
Browse files Browse the repository at this point in the history
  • Loading branch information
repeatedly committed Sep 5, 2017
1 parent 43a594c commit 6dac783
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/fluent/supervisor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ def supervisor_sigusr1_handler

def kill_worker
if config[:worker_pid]
config[:worker_pid].each do |pid|
pids = config[:worker_pid].clone
config[:worker_pid].clear
pids.each do |pid|
if Fluent.windows?
Process.kill :KILL, pid
else
Expand Down

0 comments on commit 6dac783

Please sign in to comment.