From 2f92b8ad3121d9f23c48afbd3a60a2592cf90ba0 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Wed, 23 Nov 2022 07:17:26 -0500 Subject: [PATCH] Fix perl warning from commit 9b4eafcaf4 per gripe from Andres Freund and Tom Lane Backpatch to all live branches. --- src/test/perl/PostgresNode.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index 506d39a3c3..ef5d3bb9e1 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -1243,7 +1243,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) {