Navigation Menu

Skip to content

Commit

Permalink
removed USR1 support from Hypnotoad again
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Apr 1, 2012
1 parent 12aea65 commit 8a4f43d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion Changes
@@ -1,7 +1,6 @@
This file documents the revision history for Perl extension Mojolicious.

2.71 2012-04-01
- Added simple log rotation support with USR1 signal to Hypnotoad.
- Improved Hypnotoad error handling.
- Improved documentation.
- Improved tests.
Expand Down
13 changes: 0 additions & 13 deletions lib/Mojo/Server/Hypnotoad.pm
Expand Up @@ -105,10 +105,6 @@ sub run {
while ((my $pid = waitpid -1, WNOHANG) > 0) { $self->_reap($pid) }
};
$SIG{QUIT} = sub { $self->{finished} = $self->{graceful} = 1 };
$SIG{USR1} = sub {
delete $log->info('Reopening log file.')->{handle};
kill 'USR1', $_ for keys %{$self->{workers}};
};
$SIG{USR2} = sub { $self->{upgrade} ||= time };
$SIG{TTIN} = sub { $c->{workers}++ };
$SIG{TTOU} = sub {
Expand Down Expand Up @@ -355,7 +351,6 @@ sub _spawn {
# Clean worker environment
$SIG{INT} = $SIG{TERM} = $SIG{CHLD} = $SIG{USR2} = $SIG{TTIN} = $SIG{TTOU} =
'DEFAULT';
$SIG{USR1} = sub { delete $self->{daemon}->app->log->{handle} };
$SIG{QUIT} = sub { $loop->max_connections(0) };
delete $self->{reader};
delete $self->{poll};
Expand Down Expand Up @@ -438,10 +433,6 @@ Increase worker pool by one.
Decrease worker pool by one.
=item C<USR1>
Reopen log file, useful for log rotation.
=item C<USR2>
Attempt zero downtime software upgrade (hot deployment) without losing any
Expand Down Expand Up @@ -475,10 +466,6 @@ Stop worker immediately.
Stop worker gracefully.
=item C<USR1>
Reopen log file, useful for log rotation.
=back
=head1 SETTINGS
Expand Down

0 comments on commit 8a4f43d

Please sign in to comment.