freebsd-dev/usr.sbin/bluetooth/bthidd
Maksim Yevmenkin c46a9ea89b 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
2005-05-18 23:03:44 +00:00
..
bthid_config.h
bthidd.c Check in updated bthidd(8). This is still work in progress. 2004-11-18 18:05:15 +00:00
bthidd.conf.sample
bthidd.h Check in updated bthidd(8). This is still work in progress. 2004-11-18 18:05:15 +00:00
client.c
hid.c Check in updated bthidd(8). This is still work in progress. 2004-11-18 18:05:15 +00:00
kbd.c Check in updated bthidd(8). This is still work in progress. 2004-11-18 18:05:15 +00:00
kbd.h Check in updated bthidd(8). This is still work in progress. 2004-11-18 18:05:15 +00:00
lexer.l
Makefile Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
parser.y Fix problem with session termination. bthidd(8) maintains two L2CAP 2005-05-18 23:03:44 +00:00
server.c Fix problem with session termination. bthidd(8) maintains two L2CAP 2005-05-18 23:03:44 +00:00
session.c Check in updated bthidd(8). This is still work in progress. 2004-11-18 18:05:15 +00:00