We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c375b8b commit 9ed07d3Copy full SHA for 9ed07d3
src/test/perl/PostgreSQL/Test/Cluster.pm
@@ -1593,7 +1593,7 @@ sub _reserve_port
1593
# take an exclusive lock to avoid concurrent access
1594
flock($portfile, LOCK_EX) || die "locking port file $filename: $!";
1595
# see if someone else has or had a reservation of this port
1596
- my $pid = <$portfile>;
+ my $pid = <$portfile> || "0";
1597
chomp $pid;
1598
if ($pid +0 > 0)
1599
{
0 commit comments