have mixer kill off silent agents

This commit is contained in:
Stephen Birarda 2013-02-26 17:04:57 -08:00
parent 31a164fd19
commit c1d66e4026

View file

@ -151,6 +151,8 @@ int main(int argc, const char * argv[])
agentList.linkedDataCreateCallback = attachNewBufferToAgent;
agentList.startSilentAgentRemovalThread();
// setup the agentSocket to report to domain server
pthread_t reportAliveThread;
pthread_create(&reportAliveThread, NULL, reportAliveToDS, NULL);
@ -188,6 +190,7 @@ int main(int argc, const char * argv[])
}
}
agentList.stopSilentAgentRemovalThread();
pthread_join(reportAliveThread, NULL);
pthread_join(sendBufferThread, NULL);