aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/error.h
diff options
context:
space:
mode:
authorBosko Milekic <bmilekic@FreeBSD.org>2001-01-20 21:29:10 +0000
committerBosko Milekic <bmilekic@FreeBSD.org>2001-01-20 21:29:10 +0000
commit56acb799b29fcc5cb5cf7ddb974f3aee9828fff2 (patch)
treebfa77255ce1698caa8d7bf54a5e9f18c42ef3151 /bin/sh/error.h
parent08b2398e6ded67650a3877c2dcb2daeac5a72f81 (diff)
downloadsrc-56acb799b29fcc5cb5cf7ddb974f3aee9828fff2.tar.gz
src-56acb799b29fcc5cb5cf7ddb974f3aee9828fff2.zip
When short of mbufs or mbuf clusters, we sleep on appropriate "counters."
The counters are incremented when a thread goes to sleep and decremented either when a thread is woken up by another thread or when the sleep times out. There existed a race where the sleep count could be decremented twice resulting in an eventual underflow. Move the decrementing of the "counters" to the thread initiating the sleep and thus remedy the problem.
Notes
Notes: svn path=/head/; revision=71302
Diffstat (limited to 'bin/sh/error.h')
0 files changed, 0 insertions, 0 deletions