Squash valgrind errors by making sure client threads get joined on termination

This commit is contained in:
Alex Young
2012-06-21 17:11:12 +01:00
parent bafc3d3687
commit a3dc670939
6 changed files with 117 additions and 20 deletions

View File

@@ -69,6 +69,11 @@ struct server {
struct self_pipe * acl_updated_signal;
pthread_mutex_t l_acl;
/** vacuum_signal will be sent when client threads terminate.
* This is mainly to keep valgrind happy
*/
struct self_pipe * vacuum_signal;
struct mirror_status* mirror;
int server_fd;
int control_fd;