INN commit: trunk/scripts (news.daily.in)

INN Commit rra at isc.org
Wed Dec 16 22:06:59 UTC 2009


    Date: Wednesday, December 16, 2009 @ 14:06:59
  Author: iulius
Revision: 8845

Do not overwrite LOCKS from innshellvars in case someone
in the future expects it to have the value in innshellvars
in the entire script.

Also prevent a call to LOCK afterwards in the script from
failing.

Thanks to S.P.Zeidler for the patch.

Modified:
  trunk/scripts/news.daily.in

---------------+
 news.daily.in |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: news.daily.in
===================================================================
--- news.daily.in	2009-12-07 18:38:25 UTC (rev 8844)
+++ news.daily.in	2009-12-16 22:06:59 UTC (rev 8845)
@@ -236,17 +236,17 @@
     cd "${PATHSPOOL}/${INNFEEDSPOOL}"
 
     # Find the PIDs of innfeed.
-    LOCKS=`cat *.lock 2>/dev/null | ${SORT} -u`
+    INNFEEDLOCKS=`cat *.lock 2>/dev/null | ${SORT} -u`
 
     # Process files like "innfeed-dropped.A001703" where
-    # 1703 is not in $LOCKS.
+    # 1703 is not in $INNFEEDLOCKS.
     for file in `find . -name "innfeed-dropped*" -print`
     do
         PID=`echo "$file" | ${SED} 's/^.*[A-Z]0*//'`
         FOUND=false
-        for LOCK in $LOCKS
+        for INNFEEDLOCK in $INNFEEDLOCKS
         do
-            if [ "$PID" = "$LOCK" ]
+            if [ "$PID" = "$INNFEEDLOCK" ]
             then
                 FOUND=true
             fi




More information about the inn-committers mailing list