line |
true |
false |
branch |
138
|
0 |
0 |
if (exists $self->{'pid'} and defined $self->{'pid'}) { } |
139
|
0 |
0 |
unless $self->{'pid'} =~ /^[0-9]{1,11}$/ |
145
|
0 |
0 |
if (exists $self->{'hold'} and defined $self->{'hold'}) { } |
146
|
0 |
0 |
unless $self->{'hold'} =~ /^[0-9]{1,11}$/ |
157
|
0 |
0 |
if ($file and -e $file) |
158
|
0 |
0 |
unless (open RD_LOCK_FILE, '<', $file) |
164
|
0 |
0 |
unless defined $l |
165
|
0 |
0 |
unless (close RD_LOCK_FILE) |
169
|
0 |
0 |
if ($l eq $str) { } |
175
|
0 |
0 |
if ($r_pid and $self->running($r_pid)) |
178
|
0 |
0 |
if ($hold > 0 and $stamp - $r_stamp > $hold) { } |
179
|
0 |
0 |
unless (unlink $file) |
193
|
0 |
0 |
unless (open MY_LOCK_FILE, '>', $file) |
197
|
0 |
0 |
unless (print MY_LOCK_FILE sprintf("%s\n", $str)) |
201
|
0 |
0 |
unless (close MY_LOCK_FILE) |
224
|
0 |
0 |
unless defined $pid |
225
|
0 |
0 |
unless $pid |
226
|
0 |
0 |
unless ($pid =~ /^[0-9]{1,11}$/) |
230
|
0 |
0 |
kill(0, $pid) ? : |
239
|
0 |
0 |
unless $file and $status and -e $file |
240
|
0 |
0 |
unless unlink $file |