Skip to content

Commit b425bf0

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

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
@@ -1593,7 +1593,7 @@ sub _reserve_port
15931593
# take an exclusive lock to avoid concurrent access
15941594
flock($portfile, LOCK_EX) || die "locking port file $filename: $!";
15951595
# see if someone else has or had a reservation of this port
1596-
my $pid = <$portfile>;
1596+
my $pid = <$portfile> || "0";
15971597
chomp $pid;
15981598
if ($pid +0 > 0)
15991599
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy