platform_system_core/include/sysutils
Xianzhu Wang 4520246d35 Fix SocketListener socket leak issue.
The problem was: if a socket is shared between SocketListener and another
thread, only if the last reference is removed by SocketListener can the socket
be closed, otherwise the socket will leak. This sometimes happens in netd's
dnsproxyd.

This change let the SocketClient own the socket and close the socket when
the SocketClient is destructed.

Change-Id: I2865fbfe9ee4d8b3e43d7e02919dbb2d261f70de
2011-09-29 13:42:32 +08:00
..
FrameworkClient.h libsysutils: const correctness fixes + remove some debugging 2009-05-20 17:16:05 -07:00
FrameworkCommand.h libsysutils: Move to a null terminated string protocol using space as a field separator. 2009-06-15 14:06:03 -07:00
FrameworkListener.h sysutils: Increase number of command arguments to 16 2010-03-09 10:46:29 -08:00
NetlinkEvent.h Cleanup NetlinkListener and NetlinkEvent 2011-06-23 18:59:45 -07:00
NetlinkListener.h Workaround Motorola ril.so incompatiblity with Netlink changes 2011-06-23 18:59:45 -07:00
ServiceManager.h libsysutils: Introduce 'ServiceManager', for starting/stopping init services 2009-05-15 10:40:23 -07:00
SocketClient.h Fix SocketListener socket leak issue. 2011-09-29 13:42:32 +08:00
SocketListener.h libsysutils: Fix race condition in SocketListener thread. 2011-01-19 02:18:40 +01:00