Failure to acquire lock should definitely be an exit 1.

This commit is contained in:
Bradley M. Kuhn 2014-02-26 07:54:43 -05:00
parent 7d91707c99
commit 5ae8c190a3

View file

@ -547,7 +547,7 @@ sub ReadConfig($) {
system("/usr/bin/lockfile -r 8 $CALENDAR_LOCK_FILE"); system("/usr/bin/lockfile -r 8 $CALENDAR_LOCK_FILE");
unless ($? == 0) { unless ($? == 0) {
print "\${color5}Calendar export failure: Cannot aquire lock on $CALENDAR_LOCK_FILE\n"; print "\${color5}Calendar export failure: Cannot aquire lock on $CALENDAR_LOCK_FILE\n";
exit 0; exit 1;
} }
if (not -r $CONFIG_FILE) { if (not -r $CONFIG_FILE) {
print "\${color5}$CONFIG_FILE does not exist\n"; print "\${color5}$CONFIG_FILE does not exist\n";