cvs commit: src/usr.sbin/bluetooth/bthidd parser.y server.c
Maksim Yevmenkin
emax at FreeBSD.org
Mon May 23 19:52:55 GMT 2005
emax 2005-05-23 19:52:54 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_5)
usr.sbin/bluetooth/bthidd parser.y server.c
Log:
MFC to RELENG_5
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
Revision Changes Path
1.1.2.2 +2 -2 src/usr.sbin/bluetooth/bthidd/parser.y
1.1.2.1 +2 -1 src/usr.sbin/bluetooth/bthidd/server.c
More information about the cvs-src
mailing list