aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-08-09 19:09:18 +0000
committermkanat%bugzilla.org <>2009-08-09 19:09:18 +0000
commitcaab33ef1a7e8da98fa1681d2e80b5c6f4a19959 (patch)
tree6f1c1de545e6b23778c2ca59ecaca5612f82a0e6 /Bugzilla
parentThe original patch for bug 508186 actually broke utf-8 conversion--the tables... (diff)
downloadbugzilla-caab33ef1a7e8da98fa1681d2e80b5c6f4a19959.tar.gz
bugzilla-caab33ef1a7e8da98fa1681d2e80b5c6f4a19959.tar.bz2
bugzilla-caab33ef1a7e8da98fa1681d2e80b5c6f4a19959.zip
Bug 509328: Make jobqueue.pl respond to the TERM signal
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/JobQueue/Runner.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/JobQueue/Runner.pm b/Bugzilla/JobQueue/Runner.pm
index 06b8a7a94..ec2719638 100644
--- a/Bugzilla/JobQueue/Runner.pm
+++ b/Bugzilla/JobQueue/Runner.pm
@@ -67,6 +67,12 @@ sub gd_check {
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 {
my $self = shift;