Merge
This commit is contained in:
commit
7ad2de8c38
1 changed files with 2 additions and 1 deletions
|
|
@ -9,9 +9,10 @@ score=`{{tee $tmpfile || exit 1} | sha1sum}
|
||||||
cachedir=/tmp/fproc_cache/$score
|
cachedir=/tmp/fproc_cache/$score
|
||||||
mkdir -p $cachedir >[2]/dev/null
|
mkdir -p $cachedir >[2]/dev/null
|
||||||
|
|
||||||
if(test -f $cachedir/$proc)
|
if(test -s $cachedir/$proc)
|
||||||
cat $cachedir/$proc
|
cat $cachedir/$proc
|
||||||
if not {
|
if not {
|
||||||
|
# XXX For reliability mv should not be called unless both $proc and tee suceed
|
||||||
$proc < $tmpfile | tee $cachedir/$pid
|
$proc < $tmpfile | tee $cachedir/$pid
|
||||||
mv $cachedir/$pid $cachedir/$proc
|
mv $cachedir/$pid $cachedir/$proc
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue