forked from c-ares/c-ares
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ares_destroy()
race condition during shutdown due to missing lock (c…
…-ares#831) When using EventThreads, the config change cleanup code might manipulate the event update list if it uses file descriptors (such as on Linux). This was being done without a lock. Rework the event enqueuing to handle locking internally to prevent this and to simplify where it is used. This was found by chance during an ASAN CI run. Fix By: Brad House (@bradh352)
- Loading branch information
Showing
1 changed file
with
34 additions
and
24 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