commit 20d3168d32d57d568c98c8152478b5b7c0275e1a
parent 1899e85964de503ac992cf6e9a5f1ec92c0ccb44
Author: uriel@engel.se.cat-v.org <unknown>
Date: Tue, 16 Dec 2008 08:12:49 +0100
Merge
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.hgtags b/.hgtags
@@ -14,3 +14,5 @@ db99d24ff2adb2e9609b886777879a1f2ab3633f LATEST-RELEASE
ba253a65472b6c98da52f9a5a604bbca2a33680a LATEST-RELEASE
9977a944663b0622f68fa259759bf43314081d6b 0.9.8.0
a8bc5aa78d01846eae3daabfc63ecbbb703fc4a7 LATEST-RELEASE
+3e54faa4d28ab2dc2e023ee1160aa2bba9c60c9b 0.9.8.1
+738869a88e1b9c2576b6aeae1c69e0ee95285ffe LATEST-RELEASE
diff --git a/bin/fproc_cache.rc b/bin/fproc_cache.rc
@@ -9,9 +9,10 @@ score=`{{tee $tmpfile || exit 1} | sha1sum}
cachedir=/tmp/fproc_cache/$score
mkdir -p $cachedir >[2]/dev/null
-if(test -f $cachedir/$proc)
+if(test -s $cachedir/$proc)
cat $cachedir/$proc
if not {
+ # XXX For reliability mv should not be called unless both $proc and tee suceed
$proc < $tmpfile | tee $cachedir/$pid
mv $cachedir/$pid $cachedir/$proc
}