Hi Andrei, On Wed, Nov 27, 2013, Andrei Emeltchenko wrote: > > > I assume this would be primary used to clean up socket structure if > > > Android decides to stop listen(). > > > > Which HAL method would "stop listen()" be done with? I don't see such a > > method in the HAL (please correct me if I'm wrong though). If there's no > > such method it's not possible to stop the listening socket, and hence > > you're just adding dead code here. > > This is listening on socketpair descriptor, the other end was sent to > Android framework. So we might get some signal or socket close. You'll need to explain in more detail how this could happen. We should already have other places looking for the HAL-side going a way (e.g. if it crashes) and then calling the necessary cleanup functions. Johan -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html