Skip to content

Commit

Permalink
Whack pointless historical code
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christensen committed Jul 9, 2018
1 parent 33eb533 commit 586e5a9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Vend/Server.pm
Expand Up @@ -1234,7 +1234,7 @@ $Job_servers = 0;

# might also trap: QUIT

my ($Routine_USR1, $Routine_USR2, $Routine_HUP, $Routine_TERM, $Routine_INT);
my ($Routine_TERM, $Routine_INT);
my ($Sig_inc, $Sig_dec, $Counter);

sub sig_int_or_term {
Expand All @@ -1260,9 +1260,6 @@ sub sig_int_or_term {

unless ($Global::Windows) {
push @trapped_signals, qw(HUP USR1 USR2);
$Routine_USR1 = sub { $SIG{USR1} = $Routine_USR1; $Num_servers++};
$Routine_USR2 = sub { $SIG{USR2} = $Routine_USR2; $Num_servers--};
$Routine_HUP = sub { $SIG{HUP} = $Routine_HUP; $Signal_Restart = 1};
}

$Routine_TERM = sub { $SIG{TERM} = $Routine_TERM; $Signal_Terminate = 1 };
Expand Down

0 comments on commit 586e5a9

Please sign in to comment.