-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a potential deadlock in helper_do_stat()
pthread_mutex_lock(), pthread_cond_signal() and pthread_mutex_unlock() are not async-signal-safe and hence must not be used inside a singal handler implementation. Rework the code for communication with the helper thread such that it becomes async-signal-safe. Fixes: a47591e ("Improve logging accuracy") Signed-off-by: Bart Van Assche <bvanassche@acm.org>
- Loading branch information
1 parent
6a087e5
commit 31eca64
Showing
1 changed file
with
54 additions
and
40 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