summaryrefslogtreecommitdiffstats
path: root/lib/libpthread
diff options
context:
space:
mode:
authorart <art@openbsd.org>2000-03-03 16:58:49 +0000
committerart <art@openbsd.org>2000-03-03 16:58:49 +0000
commitf7e5f6f670fb5ad95e6af836a696534eb844dd37 (patch)
tree3ba159b6f58225d8323e6bac4fe0515af8f00908 /lib/libpthread
parentKeep track of the number of times we trigger a reschedule before the (diff)
downloadwireguard-openbsd-f7e5f6f670fb5ad95e6af836a696534eb844dd37.tar.xz
wireguard-openbsd-f7e5f6f670fb5ad95e6af836a696534eb844dd37.zip
If we attempted reschedule two times without suceeding, uiomove will yield,
giving other processes a chance to run. A process feeding a huge buffer to {read,write}{,v} on a file that doesn't need to wait for I/O, could have hogged a lot of cpu in the kernel, blocking all userland activity. Based on a similiar fix in FreeBSD.
Diffstat (limited to 'lib/libpthread')
0 files changed, 0 insertions, 0 deletions