From 5ae8c190a386dac227bc4166686599875bd1981c Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Wed, 26 Feb 2014 07:54:43 -0500 Subject: [PATCH] Failure to acquire lock should definitely be an exit 1. --- calendar-export.plx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calendar-export.plx b/calendar-export.plx index b7662d4..a148943 100755 --- a/calendar-export.plx +++ b/calendar-export.plx @@ -547,7 +547,7 @@ sub ReadConfig($) { system("/usr/bin/lockfile -r 8 $CALENDAR_LOCK_FILE"); unless ($? == 0) { print "\${color5}Calendar export failure: Cannot aquire lock on $CALENDAR_LOCK_FILE\n"; - exit 0; + exit 1; } if (not -r $CONFIG_FILE) { print "\${color5}$CONFIG_FILE does not exist\n";