From: Guilhem Moulin Date: Tue, 22 Sep 2015 18:18:10 +0000 (+0200) Subject: Bug fix: don't delete the lockfile if another instance of interimap is running. X-Git-Url: https://git.g-eek.se/?a=commitdiff_plain;h=f9fdac668d82d0e651c2df09136bf61ec3c2b89a;p=interimap.git Bug fix: don't delete the lockfile if another instance of interimap is running. --- diff --git a/Changelog b/Changelog index 8cd8be2..77f6f24 100644 --- a/Changelog +++ b/Changelog @@ -25,6 +25,8 @@ interimap (0.2) upstream; * Set X.509 certificate purpose to 'SSL Server' for SSL_verify=YES. * Display the certificate chain, SSL protocol and cipher in debug mode. + * Bug fix: don't delete the lockfile if another instance of interimap + is running. -- Guilhem Moulin Wed, 09 Sep 2015 00:44:35 +0200 diff --git a/interimap b/interimap index f9bee12..401bfa2 100755 --- a/interimap +++ b/interimap @@ -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"; }