Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72a7835
)
Write the hash cache back to disk whenever it is dirty when the daemon exits.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 15 Mar 2008 13:45:37 +0000
(14:45 +0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sat, 15 Mar 2008 13:45:37 +0000
(14:45 +0100)
daemon/client.c
patch
|
blob
|
blame
|
history
diff --git
a/daemon/client.c
b/daemon/client.c
index
26b50f3
..
46766e9
100644
(file)
--- 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);