From: Fredrik Tolf Date: Sat, 15 Mar 2008 13:45:37 +0000 (+0100) Subject: Write the hash cache back to disk whenever it is dirty when the daemon exits. X-Git-Tag: 1.3~32^2 X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=2f4cd43c4483070e81c0862582a80b59a208f0dd;p=doldaconnect.git Write the hash cache back to disk whenever it is dirty when the daemon exits. --- diff --git a/daemon/client.c b/daemon/client.c index 26b50f3..46766e9 100644 --- a/daemon/client.c +++ b/daemon/client.c @@ -1086,6 +1086,8 @@ static void terminate(void) { if(hashjob != 0) kill(hashjob, SIGHUP); + if(hashwritetimer != NULL) + writehashcache(1); while(shares != NULL) freesharepoint(shares); freecache(shareroot);