summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan2022-11-23 12:03:06 +0000
committerAndrew Dunstan2022-11-23 12:03:06 +0000
commitb425bf0081386a544e1faf872a75da69a971e173 (patch)
treea4d2330867c2bc4bdd38f765eada1a76c36cc54e
parent56d0ed3b756b2e3799a7bbc0ac89bc7657ca2c33 (diff)
Fix perl warning from commit 9b4eafcaf4
per gripe from Andres Freund and Tom Lane Backpatch to all live branches.
-rw-r--r--src/test/perl/PostgreSQL/Test/Cluster.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/perl/PostgreSQL/Test/Cluster.pm b/src/test/perl/PostgreSQL/Test/Cluster.pm
index 6101740ca0..7411188dc8 100644
--- a/src/test/perl/PostgreSQL/Test/Cluster.pm
+++ b/src/test/perl/PostgreSQL/Test/Cluster.pm
@@ -1593,7 +1593,7 @@ sub _reserve_port
# take an exclusive lock to avoid concurrent access
flock($portfile, LOCK_EX) || die "locking port file $filename: $!";
# see if someone else has or had a reservation of this port
- my $pid = <$portfile>;
+ my $pid = <$portfile> || "0";
chomp $pid;
if ($pid +0 > 0)
{