INN commit: trunk/backends (nntpsend.in)

INN Commit rra at isc.org
Thu May 20 19:51:03 UTC 2010


    Date: Thursday, May 20, 2010 @ 12:51:02
  Author: iulius
Revision: 9065

Emitting an error if nntpsend is unable to get the lock
is better than silently failing.

Thanks to Matthew Vernon for his suggestion.

Modified:
  trunk/backends/nntpsend.in

-------------+
 nntpsend.in |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Modified: nntpsend.in
===================================================================
--- nntpsend.in	2010-05-20 19:25:13 UTC (rev 9064)
+++ nntpsend.in	2010-05-20 19:51:02 UTC (rev 9065)
@@ -149,6 +149,7 @@
 if [ -z "${NOLOCK}" ]; then
     shlock -p $$ -f ${NNTPLOCK} || {
         # Nothing to do.
+        echo "${PROGNAME}:  Lock found" 1>&2
         exit 0
     }
 fi
@@ -303,8 +304,8 @@
 	X-w)
 	    if [ -z "$2" ] ; then
 		echo "${PROGNAME}: option requires an argument -- w" 1>&2
-	    rm -f "${NNTPLOCK}" "${LOCK}"
-	    exit 1
+                rm -f "${NNTPLOCK}" "${LOCK}"
+                exit 1
 	    fi
 	    W_SECONDS="$2"
 	    shift




More information about the inn-committers mailing list