Commit caab33ef authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 509328: Make jobqueue.pl respond to the TERM signal

Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat
parent 9726fb76
...@@ -67,6 +67,12 @@ sub gd_check { ...@@ -67,6 +67,12 @@ sub gd_check {
print get_text('job_queue_depth', { count => $count }) . "\n"; print get_text('job_queue_depth', { count => $count }) . "\n";
} }
sub gd_setup_signals {
my $self = shift;
$self->SUPER::gd_setup_signals();
$SIG{TERM} = sub { $self->gd_quit_event(); }
}
sub gd_run { sub gd_run {
my $self = shift; my $self = shift;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment