Merge "logd: improve logd prune"

This commit is contained in:
Tom Cherry 2018-12-21 16:20:14 +00:00 committed by Gerrit Code Review
commit c02d05dc1c
1 changed files with 3 additions and 0 deletions

View File

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