summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_sleepqueue.c
diff options
context:
space:
mode:
authoremax <emax@FreeBSD.org>2005-05-18 23:03:44 +0000
committeremax <emax@FreeBSD.org>2005-05-18 23:03:44 +0000
commit050a3f3809cde7809c26de3701de449faec287cb (patch)
tree25c23080b909f8fc43f1524be39267d3ea21da51 /sys/kern/subr_sleepqueue.c
parent72bafed72fb51c19757071ca9427f514ca991ae5 (diff)
downloadFreeBSD-src-050a3f3809cde7809c26de3701de449faec287cb.zip
FreeBSD-src-050a3f3809cde7809c26de3701de449faec287cb.tar.gz
Fix problem with session termination. bthidd(8) maintains two L2CAP
connections to Bluetooth HID device. As soon as Bluetooth HID device is powered off (or goes out of RF range) the stack will terminate both connections. File descriptors for both connections will become active on next select(2) call. Because bthidd(8) processes file descriptors in order, it will detect descriptor for one of the closed connections first and kill the session. However, there is still a second (active) descriptor that used to point to the same session. bthidd(8) used to assert() if it cant find session by file descriptor, which was wrong. While I'm here fix a couple of typos in parser.y Reported by: Eric Anderson anderson AT centtech DOT com MFC after: 3 days
Diffstat (limited to 'sys/kern/subr_sleepqueue.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud