Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit70fea39

Browse files
committed
Move Cluster.pm initialization code to a more obvious place
Commit460c007 added some module intialization code to set signalhandlers. However, that code has now become somewhat buried, as latercommits added new subroutines. Therefore, move the initialization codeto the module's INIT block where it won't become obscured.
1 parent430ce18 commit70fea39

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

‎src/test/perl/PostgreSQL/Test/Cluster.pm

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ INIT
175175
$portdir =~s!\\!/!g;
176176
# Make sure the directory exists
177177
mkpath($portdir)unless-d$portdir;
178+
179+
#
180+
# Signal handlers
181+
#
182+
$SIG{TERM} =$SIG{INT} =sub {die"death by signal"; };
178183
}
179184

180185
=pod
@@ -3350,13 +3355,6 @@ sub corrupt_page_checksum
33503355
return;
33513356
}
33523357

3353-
#
3354-
# Signal handlers
3355-
#
3356-
$SIG{TERM} =$SIG{INT} =sub {
3357-
die"death by signal";
3358-
};
3359-
33603358
=pod
33613359
33623360
=item$node->log_standby_snapshot(self, standby, slot_name)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp