This repository has been archived by the owner on Jun 12, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[record] join writer thread after tailer threads
_join_workers uses a simple loop to await worker threads. When ctrl+c is called, force_quit is set to true, but threads are not killed until processed by this loop. As the writer thread continues to run until the queue is empty, this can cause an indefinite wait if _join_workers blocks on the write thread while tailer threads are still running, since they continue to write to the queue. Here we move the join call on the writer thread to the end of the loop. In addition, stop increasing the the wait_time by a factor of 2 as this can lead to long and unnecessary waits for the program to shut down.
- Loading branch information
Travis Redman
committed
Jan 5, 2016
1 parent
fbf2e91
commit da188ca
Showing
1 changed file
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters