diff --git a/src/test/perl/PostgreSQL/Test/Cluster.pm b/src/test/perl/PostgreSQL/Test/Cluster.pm index 90a842f96ab..30857f34bff 100644 --- a/src/test/perl/PostgreSQL/Test/Cluster.pm +++ b/src/test/perl/PostgreSQL/Test/Cluster.pm @@ -175,6 +175,11 @@ INIT $portdir =~ s!\\!/!g; # Make sure the directory exists mkpath($portdir) unless -d $portdir; + + # + # Signal handlers + # + $SIG{TERM} = $SIG{INT} = sub { die "death by signal"; }; } =pod @@ -3350,13 +3355,6 @@ sub corrupt_page_checksum return; } -# -# Signal handlers -# -$SIG{TERM} = $SIG{INT} = sub { - die "death by signal"; -}; - =pod =item $node->log_standby_snapshot(self, standby, slot_name)