Skip to content

Commit 947a350

Browse files
committed
When Perl "kill(9, ...)" fails, try "pg_ctl kill".
Per buildfarm member jacana, the former fails under msys Perl 5.8.8. Back-patch to 9.6, like the code in question. Discussion: https://postgr.es/m/GrdLgAdUK9FdyZg8VIcTDKVOkys122ZINEb3CjjoySfGj2KyPiMKTh1zqtRp0TAD7FJ27G-OBB3eplxIB5GhcQH5o8zzGZfp0MuJaXJxVxk=@yesql.se
1 parent 5f1433a commit 947a350

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/test/perl/PostgresNode.pm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,9 @@ sub kill9
789789
my $name = $self->name;
790790
return unless defined $self->{_pid};
791791
print "### Killing node \"$name\" using signal 9\n";
792-
kill(9, $self->{_pid}) or BAIL_OUT("kill(9, $self->{_pid}) failed");
792+
# kill(9, ...) fails under msys Perl 5.8.8, so fall back on pg_ctl.
793+
kill(9, $self->{_pid})
794+
or TestLib::system_or_bail('pg_ctl', 'kill', 'KILL', $self->{_pid});
793795
$self->{_pid} = undef;
794796
return;
795797
}

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