summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2020-03-02 13:55:15 +0000
committerbluhm <bluhm@openbsd.org>2020-03-02 13:55:15 +0000
commit9467af2c6de3b99bb8540c86153464a4f9026d41 (patch)
tree74a78e8e745626c40ec6e5c783a3415ba24aa75e /lib
parentAccidently some tests were never running. Make regress target names (diff)
downloadwireguard-openbsd-9467af2c6de3b99bb8540c86153464a4f9026d41.tar.xz
wireguard-openbsd-9467af2c6de3b99bb8540c86153464a4f9026d41.zip
msleep() and rwsleep() allow to release the lock when going to
sleep. If sleep_setup_signal() detects that the process has been stopped, it calls mi_switch() instead of sleeping. Then the lock was not released and other processes got stuck. Move the mtx_leave() and rw_exit() before sleep_setup_signal() to prevent that a stopped process holds a short term kernel lock. input kettenis@; OK visa@ tedu@
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions