Skip to content

Commit

Permalink
Merge pull request #1170 from unak/patch-1
Browse files Browse the repository at this point in the history
`WaitForSingleObject` stops all threads
  • Loading branch information
tagomoris authored Aug 19, 2016
2 parents 579fbf4 + b6103a2 commit bf78d78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/fluent/supervisor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ def install_windows_event_handler
ev = Win32::Event.new(@signame)
begin
ev.reset
until WaitForSingleObject(ev.handle, 1000) == WAIT_OBJECT_0
until WaitForSingleObject(ev.handle, 0) == WAIT_OBJECT_0
sleep 1
end
kill_worker
stop(true)
Expand Down

0 comments on commit bf78d78

Please sign in to comment.