shithub: werc

Download patch

ref: cade4179643fe9c2e4f1f764abe323e9178f41d7
parent: f9c038afbea2e43d82ba6389f091957bb7b7a673
parent: cc8cf1e4d46efd0e64205c8a3296d6e60498a09c
author: uriel <[email protected]>
date: Tue Dec 16 03:12:49 EST 2008

Merge

--- a/.hgtags
+++ b/.hgtags
@@ -14,3 +14,5 @@
 ba253a65472b6c98da52f9a5a604bbca2a33680a LATEST-RELEASE
 9977a944663b0622f68fa259759bf43314081d6b 0.9.8.0
 a8bc5aa78d01846eae3daabfc63ecbbb703fc4a7 LATEST-RELEASE
+3e54faa4d28ab2dc2e023ee1160aa2bba9c60c9b 0.9.8.1
+738869a88e1b9c2576b6aeae1c69e0ee95285ffe LATEST-RELEASE
--- a/bin/fproc_cache.rc
+++ b/bin/fproc_cache.rc
@@ -9,9 +9,10 @@
 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
 }