We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83d5f55 commit dc14b06Copy full SHA for dc14b06
sbin/spectre.pl
@@ -114,10 +114,9 @@ BEGIN
114
die "Spectre is already running.\n";
115
}
116
elsif (-e $pidFileName){
117
- # oh, ffs ... die "pidFile $pidFileName already exists\n";
118
open my $pidFile, '<', $pidFileName or die "$pidFileName: $!";
119
(my $pid) = readline $pidFile;
120
- chomp $pid;
+ chomp $pid if defined $pid;
121
if(defined $pid and $pid =~ m/^(\d+)$/) {
122
if(kill 0, $1) {
123
die "$0: already running as PID $1";
0 commit comments