remove scanlogs cruft
Florian Schlichting
fschlich at CIS.FU-Berlin.DE
Tue Nov 10 11:40:36 UTC 2009
Hi,
while looking at the "nomail" stuff, I noticed two more things in
scanlogs...
This patch cleans up a little cruft (${T}, ${PROBS}) left in scanlogs
since its rewrite by Gary Palmer in September 1997.
diff --git a/scripts/scanlogs.in b/scripts/scanlogs.in
index 50dfdb5..7cc674e 100644
--- a/scripts/scanlogs.in
+++ b/scripts/scanlogs.in
@@ -92,11 +92,6 @@ for F in ${LOGS} ; do
test ! -f ${F} && touch ${F}
done
-## Temporary files.
-T=${TMPDIR}/scan$$
-PROBS=${TMPDIR}/scanlog$$
-trap "rm -f ${T} ${PROBS}; exit 0" 0 1 2 3 15
-
## Rotate the logs?
if ${ROTATE} ; then
## Lock out others.
@@ -104,7 +99,7 @@ if ${ROTATE} ; then
echo "$0: Locked by `cat ${LOCK}`"
exit 1
}
- trap "rm -f ${T} ${PROBS} ${LOCK}; exit 0" 1 2 3 15
+ trap "rm -f ${LOCK}; exit 0" 1 2 3 15
HERE=`pwd`
cd ${MOST_LOGS}
More information about the inn-workers
mailing list