1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-15 19:21:59 +03:00

Fix perl warning from commit 9b4eafcaf4

per gripe from Andres Freund and Tom Lane

Backpatch to all live branches.
This commit is contained in:
Andrew Dunstan
2022-11-23 07:17:26 -05:00
parent ec10b6139c
commit 3a2807528e

View File

@ -1292,7 +1292,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)
{