Commit
460c0076e8 added some module intialization code to set signal
handlers. However, that code has now become somewhat buried, as later
commits added new subroutines. Therefore, move the initialization code
to the module's INIT block where it won't become obscured.
$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
return;
}
-#
-# Signal handlers
-#
-$SIG{TERM} = $SIG{INT} = sub {
- die "death by signal";
-};
-
=pod
=item $node->log_standby_snapshot(self, standby, slot_name)