android_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
FrameworkCommand.h
FrameworkListener.h
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
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