forked from antonblanchard/will-it-scale
-
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.
main: Fix deadlocks on _threads exit
See issue (antonblanchard#33). Since async pthread_cancel on threads that do hold locks is wrong, we instead create a separate process that holds the threads. On exit, the holding process just exits, and the parent wait()'s for it, and cleans up the testcase. Signed-off-by: Pedro Falcato <[email protected]>
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 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