Merge "logd: improve logd prune" am: c02d05dc1c

am: 3a9935ee02

Change-Id: I0560401d07a62944acc751ac39f21d8c2e60b1a2
This commit is contained in:
Tom Cherry 2018-12-21 08:35:43 -08:00 committed by android-build-merger
commit 08589ae8c2

View file

@ -18,6 +18,7 @@
#define _LOGD_LOG_TIMES_H__ #define _LOGD_LOG_TIMES_H__
#include <pthread.h> #include <pthread.h>
#include <sys/socket.h>
#include <sys/types.h> #include <sys/types.h>
#include <time.h> #include <time.h>
@ -82,6 +83,8 @@ class LogTimeEntry {
void cleanSkip_Locked(void); void cleanSkip_Locked(void);
void release_Locked(void) { void release_Locked(void) {
// gracefully shut down the socket.
shutdown(mClient->getSocket(), SHUT_RDWR);
mRelease = true; mRelease = true;
pthread_cond_signal(&threadTriggeredCondition); pthread_cond_signal(&threadTriggeredCondition);
} }