eg_pbx_allocator.pl - lock file detection warnings
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
Low
|
Unassigned | ||
2.12 |
Won't Fix
|
Low
|
Unassigned | ||
3.1 |
Fix Released
|
Low
|
Unassigned |
Bug Description
Hello, when the eg-pbx-allocator.pl detects an already existing lock file, the following warnings are detected.
Use of uninitialized value $pid in scalar chomp at /usr/local/
Use of uninitialized value $pid in concatenation (.) or string at
+/usr/local/
Use of uninitialized value $pid in concatenation (.) or string at
+/usr/local/
lock file present! at /usr/local/
verbose output ON
I think that the lock file detection code isn't correct.
http://
252 sub lock_file_test {
253 if (open FH, $config{lock_file}) {
254 my $pid = <>;
255 chomp $pid;
256 close FH;
I think that "my $pid = <>;" isn't correct, that seems to be waiting for STDIN or a filename from the command line. I think it should be "my $pid = <FH>;"
Working branch on the way.
Josh
Changed in evergreen: | |
milestone: | 3.0.5 → 3.0.6 |
Changed in evergreen: | |
milestone: | 3.0.6 → 3.0.7 |
Changed in evergreen: | |
milestone: | 3.0.7 → 3.0.8 |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
Working branch added at user/stompro/ lp1739044- eg-pbx- allocator- lock-detect
http:// git.evergreen- ils.org/ ?p=working/ Evergreen. git;a=shortlog; h=refs/ heads/user/ stompro/ lp1739044- eg-pbx- allocator- lock-detect
Josh