8000 Fix perl warning from commit 9b4eafcaf4 · postgres/postgres@2f92b8a · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f92b8a

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1243,7 +1243,7 @@ sub _reserve_port
12431243
# take an exclusive lock to avoid concurrent access
12441244
flock($portfile, LOCK_EX) || die "locking port file $filename: $!";
12451245
# see if someone else has or had a reservation of this port
1246-
my $pid = <$portfile>;
1246+
my $pid = <$portfile> || "0";
12471247
chomp $pid;
12481248
if ($pid +0 > 0)
12491249
{

0 commit comments

Comments
 (0)
0