This code is to pull down the kernel HCI interface (specifically it detaches the HCI line discipline from the tty) when Bluetooth is turned off.
It is a horrible embarrassment that it polls. I've been meaning to investigate and fix for a while. I *believe* when I last tested that things still worked after increasing this timeout. But it is possible it introduces a problem if you turn Bluetooth off then on quickly. I did not test thoroughly. Asking on [email protected] may help - this code is from bluez. Nick On Fri, May 29, 2009 at 11:39 AM, BHEEMSEN KULKARNI <[email protected]>wrote: > Hi, > There is piece of code in the hciattach main function, which polls for > events for file descrpitor every 500msec. > > while (!__io_canceled) { > p.revents = 0; > err = poll(&p, 1, 500); > if (err < 0 && errno == EINTR) > continue; > if (err) > break; > } > Can increase the timeout value 500 to more, is this cause anything. > Appreciate your answer. > > Regards > Bheemsen K > > > > --~--~---------~--~----~------------~-------~--~----~ unsubscribe: [email protected] website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---
