summaryrefslogtreecommitdiffstats
path: root/bin/ls/extern.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2001-12-28 18:08:10 +0000
committerbde <bde@FreeBSD.org>2001-12-28 18:08:10 +0000
commitb0e8a2af1f722c2ac2c13de4daeec09b9891e402 (patch)
tree03b32fd6acbd0f7c12f41bf4e0cfccfc4af66a05 /bin/ls/extern.h
parent4b91e746b48e55b71f486cb2aa4f822054148c8f (diff)
downloadFreeBSD-src-b0e8a2af1f722c2ac2c13de4daeec09b9891e402.zip
FreeBSD-src-b0e8a2af1f722c2ac2c13de4daeec09b9891e402.tar.gz
Fixed locking bugs in rev.1.346:
(1) Don't attempt aquire the non-recursive lock sio_lock recursively. Doing so caused unbounded recursion in some setups. E.g., if DDB, BREAK_TO_DEBUGGER and WITNESS are configured; if the debugger is entered using a break, then WITNESS will actually detect the invalid recursion and will add to it attempting to print a message about it. (2) Don't use sio_lock before it has been initialized. The old check (sio_inited != 0) didn't work when sio_inited was boolean because sio_inited was set too early, and became just wrong when sio_inited was changed to a tri-state variable in rev.1.348. Reported and fixed in another way by: fenner (1)
Diffstat (limited to 'bin/ls/extern.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud