diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-09-22 20:18:10 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-09-22 20:20:52 +0200 |
commit | f9fdac668d82d0e651c2df09136bf61ec3c2b89a (patch) | |
tree | fd6534eb2227851a9b36b4b12f14eb949c3c2f43 /interimap | |
parent | 3a8ee0765eac38a8ae8695957dec8382f8f4df46 (diff) |
Bug fix: don't delete the lockfile if another instance of interimap is running.
Diffstat (limited to 'interimap')
-rwxr-xr-x | interimap | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -130,6 +130,7 @@ $SIG{TERM} = sub { cleanup(); exit 0; }; close $lock; chomp $pid; my $msg = "LOCKFILE '$LOCKFILE' exists."; + undef $LOCKFILE; # don't delete the lockfile $msg .= " (Is PID $pid running?)" if defined $pid and $pid =~ /^[0-9]+$/; die $msg, "\n"; } |