freebsd-dev/usr.sbin/bluetooth
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
..
bcmfw Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
bt3cfw Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
bthidcontrol Sort sections. 2005-01-18 20:02:45 +00:00
bthidd Fix problem with session termination. bthidd(8) maintains two L2CAP 2005-05-18 23:03:44 +00:00
hccontrol Sort sections. 2005-01-18 20:02:45 +00:00
hcsecd Sort sections. 2005-01-18 20:02:45 +00:00
hcseriald Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
l2control Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
l2ping Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
rfcomm_pppd Sort sections. 2005-01-18 20:02:45 +00:00
sdpcontrol Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
sdpd Sort sections. 2005-01-18 20:02:45 +00:00
Makefile Cleanup CFLAGS in libsdp(3) Makefile 2004-01-25 21:33:59 +00:00
Makefile.inc Update Bluetooth code. 2003-10-12 22:04:24 +00:00