Failure to acquire lock should definitely be an exit 1.
This commit is contained in:
parent
7d91707c99
commit
5ae8c190a3
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||||
|
|
Loading…
Add table
Reference in a new issue