X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitserver.c;h=85f593641318e9bfdc56e7f1c72cf0ea5401ce6d;hb=5cbfcc2545d5b9f6b947c7fecd1f9f81cabbae4a;hp=1e32ea54b5ceca67679346b84a3bd6d76b30c88b;hpb=596a7da4859d0dbf87fba6f6587c612e1cda95ac;p=citadel.git diff --git a/citadel/citserver.c b/citadel/citserver.c index 1e32ea54b..85f593641 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -152,6 +152,10 @@ void master_cleanup(int exitcode) { lprintf(CTDL_INFO, "Waiting for the indexer thread to shut down\n"); pthread_join(indexer_thread_tid, NULL); + /* Shut down the checkpoint thread */ + lprintf(CTDL_INFO, "Waiting for the checkpoint thread to shut down\n"); + pthread_join(checkpoint_thread_tid, NULL); + /* Close databases */ lprintf(CTDL_INFO, "Closing databases\n"); close_databases();