Skip to content

Commit

Permalink
Merge pull request #1683 from fluent/clear-worker-pid-after-kill
Browse files Browse the repository at this point in the history
supervisor: Clear previous worker pids when receives kill signals. ref #1674
  • Loading branch information
repeatedly authored Sep 6, 2017
2 parents 187d5de + 6dac783 commit d14ea82
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 d14ea82

Please sign in to comment.