LP#1739044: fix lock file detection in eg-pbx-allocator.pl
[Evergreen.git] / Open-ILS / src / asterisk / pbx-daemon / eg-pbx-allocator.pl
index 2db674f..ba58342 100755 (executable)
@@ -251,7 +251,7 @@ sub lock_file_release {
 
 sub lock_file_test {
     if (open FH, $config{lock_file}) {
-        my $pid = <>;
+        my $pid = <FH>;
         chomp $pid;
         close FH;