[Swan-commit] Changes to ref refs/heads/master
Andrew Cagney
cagney at vault.libreswan.fi
Thu Jun 7 18:00:34 UTC 2018
New commits:
commit 44c6a5ed0954ca642f0a5a153c0011d9c7d45432
Author: Andrew Cagney <cagney at gnu.org>
Date: Thu Jun 7 13:56:37 2018 -0400
pluto: add big 'exiting_pluto' flag, check in fetch and helper threads
From the comment:
The global EXITING_PLUTO is there as a hint to long running threads
that they should also shutdown (it should be tested in the thread's
main and some inner loops). Just note that, on its own, it isn't
sufficient. Any long running threads will also need a gentle nudge
(so that they loop around and detect the need to quit) and then a join
to confirm that they have exited.
Also avoid pthread_cancel() which can crash.
More information about the Swan-commit
mailing list