Skip to content

Commit 2c0d0ee

Browse files
committed
Fix perl warning from commit 9b4eafc
per gripe from Andres Freund and Tom Lane Backpatch to all live branches.
1 parent 2debcee commit 2c0d0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/perl/PostgreSQL/Test/Cluster.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1592,7 +1592,7 @@ sub _reserve_port
15921592
# take an exclusive lock to avoid concurrent access
15931593
flock($portfile, LOCK_EX) || die "locking port file $filename: $!";
15941594
# see if someone else has or had a reservation of this port
1595-
my $pid = <$portfile>;
1595+
my $pid = <$portfile> || "0";
15961596
chomp $pid;
15971597
if ($pid +0 > 0)
15981598
{

0 commit comments

Comments
 (0)