projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56d0ed3
)
Fix perl warning from commit 9b4eafcaf4
author
Andrew Dunstan
Wed, 23 Nov 2022 12:03:06 +0000
(07:03 -0500)
committer
Andrew Dunstan
Wed, 23 Nov 2022 12:03:06 +0000
(07:03 -0500)
per gripe from Andres Freund and Tom Lane
Backpatch to all live branches.
src/test/perl/PostgreSQL/Test/Cluster.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/test/perl/PostgreSQL/Test/Cluster.pm
b/src/test/perl/PostgreSQL/Test/Cluster.pm
index 6101740ca0a1b47717decec892f96e73c991f130..7411188dc8735039420f644cc9422c2fb501e4b2 100644
(file)
--- 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)
{